Skip to content

Commit f9b009a

Browse files
committed
Prevent inlining of initTimer()
1 parent 8fba43b commit f9b009a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/esp8266/core_esp8266_waveform_pwm.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static WVFState wvfState;
9797
static IRAM_ATTR void timer1Interrupt();
9898
static bool timerRunning = false;
9999

100-
static void initTimer() {
100+
static __attribute__((noinline)) void initTimer() {
101101
if (!timerRunning) {
102102
timer1_disable();
103103
ETS_FRC_TIMER1_INTR_ATTACH(NULL, NULL);

0 commit comments

Comments
 (0)