8000 Revert recent change that is the most likely cause of reported PWM fr… · dok-net/arduino-esp8266@fe5a791 · GitHub
[go: up one dir, main page]

Skip to content

Commit fe5a791

Browse files
committed
Revert recent change that is the most likely cause of reported PWM frequency drop regression.
1 parent 232e008 commit fe5a791

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cores/esp8266/core_esp8266_waveform.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,7 @@ static ICACHE_RAM_ATTR void timer1Interrupt() {
408408

409409
if (static_cast<int32_t>(wave.nextEventCcy - isrTimeoutCcy) >= 0) {
410410
busyPins &= ~(1UL << pin);
411-
// join events below performance threshold apart
412-
if (static_cast<int32_t>(waveform.nextEventCcy - wave.nextEventCcy) > IRQLATENCYCCYS) {
411+
if (static_cast<int32_t>(waveform.nextEventCcy - wave.nextEventCcy) > 0) {
413412
waveform.nextEventCcy = wave.nextEventCcy;
414413
waveform.nextPin = pin;
415414
}

0 commit comments

Comments
 (0)
0