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 esp8266#8043
  • Loading branch information
SadaleNet committed May 17, 2021
1 parent 90f611f commit 7527117
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 7527117

Please sign in to comment.