8000 Added IRAM_ATTR to _stopPWM() so that digitalWrite() would work insid… · esp8266/Arduino@25e1b3b · GitHub
[go: up one dir, main page]

Skip to content

Commit 25e1b3b

Browse files
authored
Added IRAM_ATTR to _stopPWM() so that digitalWrite() would work inside ISR. Fixes #8043 (#8044)
1 parent 90f611f commit 25e1b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/core_esp8266_waveform_pwm.cpp

Lines changed: 1 addition & 1 deletion
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)
0