From 22fec3202a911a13ebfd3946dae8568549f60db4 Mon Sep 17 00:00:00 2001 From: stefanbode Date: Fri, 3 Jul 2020 09:07:43 +0200 Subject: [PATCH] Update core_esp8266_wiring_pwm.cpp --- tasmota/core_esp8266_wiring_pwm.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasmota/core_esp8266_wiring_pwm.cpp b/tasmota/core_esp8266_wiring_pwm.cpp index 6141649da..d81928a5d 100644 --- a/tasmota/core_esp8266_wiring_pwm.cpp +++ b/tasmota/core_esp8266_wiring_pwm.cpp @@ -53,8 +53,7 @@ extern void __analogWrite(uint8_t pin, int val) { if (pin > 16) { return; } - uint32_t analogPeriod; -{ + uint32_t analogPeriod = microsecondsToClockCycles(1000000UL) / analogFreq; if (val < 0) { val = 0;