diff --git a/cores/esp8266/core_esp8266_waveform_pwm.cpp b/cores/esp8266/core_esp8266_waveform_pwm.cpp index 2107ef726c..916361e2ca 100644 --- a/cores/esp8266/core_esp8266_waveform_pwm.cpp +++ b/cores/esp8266/core_esp8266_waveform_pwm.cpp @@ -260,7 +260,7 @@ IRAM_ATTR bool _stopPWM_weak(uint8_t pin) { return true; } static bool _stopPWM_bound(uint8_t pin) __attribute__((weakref("_stopPWM_weak"))); -bool _stopPWM(uint8_t pin) { +IRAM_ATTR bool _stopPWM(uint8_t pin) { return _stopPWM_bound(pin); }