Update sonoff.ino

This commit is contained in:
MadDoct 2018-09-04 18:53:44 +01:00 committed by GitHub
parent a8b673487b
commit e7ae727c65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2362,7 +2362,7 @@ void GpioInit()
if (mpin) pin[mpin] = i;
}
if ((2 == pin[GPIO_TXD]) || (Settings.module == 20)) Serial.set_tx(2);
if ((2 == pin[GPIO_TXD]) || (H801 == Settings.module)) Serial.set_tx(2);
analogWriteRange(Settings.pwm_range); // Default is 1023 (Arduino.h)
analogWriteFreq(Settings.pwm_frequency); // Default is 1000 (core_esp8266_wiring_pwm.c)