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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -53,8 +53,7 @@ extern void __analogWrite(uint8_t pin, int val) {
if (pin > 16) { if (pin > 16) {
return; return;
} }
uint32_t analogPeriod;
{
uint32_t analogPeriod = microsecondsToClockCycles(1000000UL) / analogFreq; uint32_t analogPeriod = microsecondsToClockCycles(1000000UL) / analogFreq;
if (val < 0) { if (val < 0) {
val = 0; val = 0;