There was an error while loading. Please reload this page.
1 parent 8ae69a3 commit d776ec2Copy full SHA for d776ec2
cores/rp2040/Tone.cpp
@@ -95,6 +95,7 @@ void noTone(uint8_t pin) {
95
if (entry != _toneMap.end()) {
96
pio_sm_set_enabled(entry->second->pio, entry->second->sm, false);
97
pio_sm_unclaim(entry->second->pio, entry->second->sm);
98
+ delete entry->second;
99
_toneMap.erase(entry);
100
pinMode(pin, OUTPUT);
101
digitalWrite(pin, LOW);
0 commit comments