Skip to content

Commit

Permalink
Fix stopBeep() method on ESP32
Browse files Browse the repository at this point in the history
  • Loading branch information
Evert Arias committed Feb 25, 2019
1 parent 84e1b1c commit 2b7d42e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EasyBuzzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ void EasyBuzzerClass::stopBeep()
{
#if defined ESP32
ledcDetachPin(mPin);
pinMode(mPin, INPUT);
#else
noTone(mPin);
#endif
Expand Down

0 comments on commit 2b7d42e

Please sign in to comment.