firmware/patches/NonBlockingRTTTL.patch
2025-03-27 21:11:20 +03:00

16 lines
540 B
Diff

diff --git a/NonBlockingRtttl.cpp b/NonBlockingRtttl.cpp
index 76dea43..ba8c4e5 100644
--- a/NonBlockingRtttl.cpp
+++ b/NonBlockingRtttl.cpp
@@ -69,8 +69,8 @@ void begin(byte iPin, const char * iSongBuffer)
//init values
pin = iPin;
#if defined(ESP32)
- ledcSetup(0, 1000, 10); // resolution always seems to be 10bit, no matter what is given
- ledcAttachPin(pin, 0);
+ // resolution always seems to be 10bit, no matter what is given
+ ledcAttachChannel(pin, 1000, 10, 0);
#endif
buffer = iSongBuffer;
bufferIndex = 0;