Skip to content

Commit 293f767

Browse files
committed
Correction to IRQ latency and ISR delta logic.
1 parent ff0782c commit 293f767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/core_esp8266_waveform_phase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ static IRAM_ATTR void timer1Interrupt() {
309309
uint32_t now = ESP.getCycleCount();
310310
uint32_t isrNextEventCcy = now;
311311
while (busyPins) {
312-
if (static_cast<int32_t>(isrNextEventCcy - now) > IRQLATENCYCCYS) {
312+
if (static_cast<int32_t>(isrNextEventCcy - now) > IRQLATENCYCCYS + DELTAIRQCCYS) {
313313
waveform.nextEventCcy = isrNextEventCcy;
314314
break;
315315
}

0 commit comments

Comments
 (0)