Skip to content

Commit

Permalink
Prevent inlining of initTimer()
Browse files Browse the repository at this point in the history
  • Loading branch information
dok-net committed Dec 23, 2022
1 parent d8893b0 commit 9c612a9
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 @@ -97,7 +97,7 @@ static WVFState wvfState;
static IRAM_ATTR void timer1Interrupt();
static bool timerRunning = false;

static void initTimer() {
static __attribute__((noinline)) void initTimer() {
if (!timerRunning) {
timer1_disable();
ETS_FRC_TIMER1_INTR_ATTACH(NULL, NULL);
Expand Down

0 comments on commit 9c612a9

Please sign in to comment.