1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 21:01:25 +01:00

Wifi baud how dare you

This commit is contained in:
dexslab 2020-09-22 17:15:27 -04:00
parent 9bb9fa5e84
commit 623187281d

View File

@ -126,12 +126,12 @@ void setup()
wifiUp = WifiInterface::setup(Serial1, wifiESSID, wifiPassword, dccex, port);
if (!wifiUp)
{
Serial2.begin(WIFI_BAUD);
Serial2.begin(WIFI_SERIAL_LINK_SPEED);
wifiUp = WifiInterface::setup(Serial2, wifiESSID, wifiPassword, dccex, port);
}
if (!wifiUp)
{
Serial3.begin(WIFI_BAUD);
Serial3.begin(WIFI_SERIAL_LINK_SPEED);
wifiUp = WifiInterface::setup(Serial3, wifiESSID, wifiPassword, dccex, port);
}
#endif
@ -161,7 +161,7 @@ void loop()
serialParser.loop(Serial);
// Responsibility 3: Optionally handle any incoming WiFi traffic
#if ENABLE_WIFI
#if ENABLE_WIFI && (defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560))
WifiInterface::loop();
#endif