From 2b7d42e9b5f6344c1d4192416749f07f2bbed5de Mon Sep 17 00:00:00 2001 From: Evert Arias Date: Mon, 25 Feb 2019 09:38:13 -0500 Subject: [PATCH] Fix stopBeep() method on ESP32 --- src/EasyBuzzer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/EasyBuzzer.cpp b/src/EasyBuzzer.cpp index b65a653..cbafc25 100644 --- a/src/EasyBuzzer.cpp +++ b/src/EasyBuzzer.cpp @@ -77,6 +77,7 @@ void EasyBuzzerClass::stopBeep() { #if defined ESP32 ledcDetachPin(mPin); + pinMode(mPin, INPUT); #else noTone(mPin); #endif