Skip to content

Conversation

@dok-net
Copy link
Contributor

@dok-net dok-net commented May 17, 2021

Even if a very small function, loading any code from flash while in ISR can and will eventually crash the MCU.
Added IRAM_ATTR to _stopPWM() so that digitalWrite() would work inside ISR.
Fixes #8043

@earlephilhower earlephilhower merged commit 117f163 into esp8266:master May 17, 2021
@dok-net dok-net deleted the stoppwm branch May 17, 2021 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v3.0.0: Calling digitalWrite() inside ISR May Crash Due to Lack of IRAM_ATTR in _stopPWM()

2 participants