Skip to content

Commit

Permalink
Added IRAM_ATTR to _stopPWM() so that digitalWrite() would work insid…
Browse files Browse the repository at this point in the history
…e ISR. Fixes #8043 (#8044)
  • Loading branch information
SadaleNet committed May 17, 2021
1 parent 90f611f commit 25e1b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp8266/core_esp8266_waveform_pwm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 25e1b3b

Please sign in to comment.