Merge pull request #4035 from willmmiles/esp8266_pwm_fix

This commit is contained in:
Blaž Kristan
2024-07-13 07:13:09 +02:00
committed by GitHub
3 changed files with 724 additions and 0 deletions

View File

@@ -8,6 +8,8 @@
#include "soc/rtc_cntl_reg.h"
#endif
extern "C" void usePWMFixedNMI();
/*
* Main WLED class implementation. Mostly initialization and connection logic
*/
@@ -408,6 +410,10 @@ void WLED::setup()
DEBUG_PRINTF_P(PSTR("TX power: %d/%d\n"), WiFi.getTxPower(), txPower);
#endif
#ifdef ESP8266
usePWMFixedNMI(); // link the NMI fix
#endif
#if defined(WLED_DEBUG) && !defined(WLED_DEBUG_HOST)
pinManager.allocatePin(hardwareTX, true, PinOwner::DebugOut); // TX (GPIO1 on ESP32) reserved for debug output
#endif