correct sonoff rf bridge issue not communicating with RF module

#310
This commit is contained in:
Florian committed 2018-11-14 07:27:57 +01:00
1 parent 1fbee2440c
commit 469bb48d52
1 file changed
+3
+3
View File
@@ -255,10 +255,13 @@ void setup()
Serial.begin(SERIAL_BAUD);
#if defined(ESP8266) || defined(ESP32)
#ifdef ESP8266
#ifndef ZgatewaySRFB // if we are not in sonoff rf bridge case we apply the ESP8266 pin optimization
Serial.end();
Serial.begin(SERIAL_BAUD, SERIAL_8N1, SERIAL_TX_ONLY);// enable on ESP8266 to free some pin
#endif
#endif
#if defined(ESP8266) && !defined(ESPWifiManualSetup)
setup_wifimanager();