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 c1a4055

Browse filesBrowse files
change(esp32): Added clearing of queue with unTone() (espressif#9055)
unTone() does not stop until the queue is exhausted. Therefore, we added clearing the queue.
1 parent 8a1e463 commit c1a4055
Copy full SHA for c1a4055

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-0
lines changed

‎cores/esp32/Tone.cpp

Copy file name to clipboardExpand all lines: cores/esp32/Tone.cpp
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ void noTone(uint8_t pin){
9595
.frequency = 0, // Ignored
9696
.duration = 0, // Ignored
9797
};
98+
xQueueReset(_tone_queue); // clear queue
9899
xQueueSend(_tone_queue, &tone_msg, portMAX_DELAY);
99100
}
100101
}

0 commit comments

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