Skip to content

Commit 7527117

Browse files
committed
Added IRAM_ATTR to _stopPWM() so that digitalWrite() would work inside ISR. Fixes esp8266#8043
1 parent 90f611f commit 7527117

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/core_esp8266_waveform_pwm.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ IRAM_ATTR bool _stopPWM_weak(uint8_t pin) {
260260
return true;
261261
}
262262
static bool _stopPWM_bound(uint8_t pin) __attribute__((weakref("_stopPWM_weak")));
263-
bool _stopPWM(uint8_t pin) {
263+
IRAM_ATTR bool _stopPWM(uint8_t pin) {
264264
return _stopPWM_bound(pin);
265265
}
266266

0 commit comments

Comments
 (0)