Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 29b8c87

Browse filesBrowse files
authored
Fixing Tone (espressif#6898)
1 parent e1b56fc commit 29b8c87
Copy full SHA for 29b8c87

File tree

Expand file treeCollapse file tree

1 file changed

+1
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-4
lines changed

‎cores/esp32/Tone.cpp

Copy file name to clipboardExpand all lines: cores/esp32/Tone.cpp
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,8 @@ static void tone_task(void*){
3131
log_d("Task received from queue TONE_START: _pin=%d, frequency=%u Hz, duration=%lu ms", tone_msg.pin, tone_msg.frequency, tone_msg.duration);
3232

3333
log_d("Setup LED controll on channel %d", _channel);
34-
// ledcSetup(_channel, tone_msg.frequency, 11);
35-
// ledcAttachPin(tone_msg.pin, _channel);
36-
// ledcWrite(_channel, 1024);
37-
ledcWriteTone(_channel, tone_msg.frequency);
3834
ledcAttachPin(tone_msg.pin, _channel);
35+
ledcWriteTone(_channel, tone_msg.frequency);
3936

4037
if(tone_msg.duration){
4138
delay(tone_msg.duration);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.