Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR #7148 w/ lwIP Ethernet merged #8332

Closed
wants to merge 17 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
_notifyPWM may be called indirectly from ISR, cannot yield() from ISR…
…, must not panic.
  • Loading branch information
dok-net committed Oct 6, 2021
commit b64622d303d10261c20fbb494cbcf095d2225946
3 changes: 2 additions & 1 deletion cores/esp8266/core_esp8266_waveform_pwm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@


#include <Arduino.h>
#include <coredecls.h>
#include "ets_sys.h"
#include "core_esp8266_waveform.h"
#include "user_interface.h"
Expand Down Expand Up @@ -162,7 +163,7 @@ static IRAM_ATTR void _notifyPWM(PWMState *p, bool idle) {
forceTimerInterrupt();
while (pwmState.pwmUpdate) {
if (idle) {
yield();
esp_break();
}
MEMBARRIER();
}
Expand Down