Skip to content

Commit 50ded37

Browse files
committed
Early firing the ISR causes interruption to other waveforms, let it pick up new starts at next regular interval.
1 parent 293f767 commit 50ded37

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cores/esp8266/core_esp8266_waveform_phase.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,7 @@ int startWaveformClockCycles_weak(uint8_t pin, uint32_t highCcys, uint32_t lowCc
195195
if (!waveform.timer1Running) {
196196
initTimer();
197197
}
198-
else if (T1V > IRQLATENCYCCYS) {
199-
// Must not interfere if Timer is due shortly
200-
timer1_write(IRQLATENCYCCYS);
201-
}
198+
// The ISR pulls updates on next PWM interval
202199
}
203200
else {
204201
wave.mode = WaveformMode::INFINITE; // turn off possible expiry to make update atomic from NMI

0 commit comments

Comments
 (0)