Update core_esp8266_wiring_pwm.cpp

This commit is contained in:
stefanbode
2020-07-03 09:07:43 +02:00
committed by GitHub
parent 041be8882e
commit 22fec3202a

View File

@@ -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;