Skip to content

Commit

Permalink
Wifi baud how dare you
Browse files Browse the repository at this point in the history
  • Loading branch information
dexslab committed Sep 22, 2020
1 parent 9bb9fa5 commit 6231872
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CommandStation-EX.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 6231872

Please sign in to comment.