From fcac1619fd02f5d5e5e12142653c879cda975f53 Mon Sep 17 00:00:00 2001 From: Hadinger Date: Tue, 4 Feb 2020 22:19:29 +0100 Subject: [PATCH] Extend to Stage --- tasmota/core_esp8266_waveform.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasmota/core_esp8266_waveform.cpp b/tasmota/core_esp8266_waveform.cpp index a17b63a9b..2a0e8415b 100644 --- a/tasmota/core_esp8266_waveform.cpp +++ b/tasmota/core_esp8266_waveform.cpp @@ -38,7 +38,7 @@ */ #include -#if defined(ARDUINO_ESP8266_RELEASE_2_6_1) || defined(ARDUINO_ESP8266_RELEASE_2_6_2) || defined(ARDUINO_ESP8266_RELEASE_2_6_3) +#if defined(ARDUINO_ESP8266_RELEASE_2_6_1) || defined(ARDUINO_ESP8266_RELEASE_2_6_2) || defined(ARDUINO_ESP8266_RELEASE_2_6_3) || !defined(ARDUINO_ESP8266_RELEASE) #warning **** Tasmota is using a patched PWM Arduino version as planned **** @@ -261,7 +261,6 @@ static ICACHE_RAM_ATTR void timer1Interrupt() { // Check for toggles int32_t cyclesToGo = wave->nextServiceCycle - now; if (cyclesToGo < 0) { - cyclesToGo = -((-cyclesToGo) % (wave->nextTimeHighCycles + wave->nextTimeLowCycles)); waveformState ^= mask; if (waveformState & mask) { if (i == 16) {