Skip to content

Commit bbb0665

Browse files
authored
correct sonoff rf bridge issue not communicating with RF module
#310
1 parent 5d4c788 commit bbb0665

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

OpenMQTTGateway.ino

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,10 @@ void setup()
244244
Serial.begin(SERIAL_BAUD);
245245

246246
#if defined(ESP8266) || defined(ESP32)
247-
#ifdef ESP8266
248-
Serial.end();
249-
Serial.begin(SERIAL_BAUD, SERIAL_8N1, SERIAL_TX_ONLY);
247+
#ifndef ZgatewaySRFB // if we are not in sonoff rf bridge case we apply the ESP8266 pin optimization
248+
Serial.end();
249+
Serial.begin(SERIAL_BAUD, SERIAL_8N1, SERIAL_TX_ONLY);// enable on ESP8266 to free some pin
250+
#endif
250251
#endif
251252
#if defined(ESP8266) && !defined(ESPWifiManualSetup)
252253
setup_wifimanager();

0 commit comments

Comments
 (0)