Skip to content

Commit dedd7d9

Browse files
Taken from https://github.com/SenMorgan/CommandStation-EX/tree/senmorgan-ArduinoOTA and inserted into latest devel code.
without the extra code changes.
1 parent d386073 commit dedd7d9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

CommandStation-EX.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ void setup()
118118
WifiInterface::setup(WIFI_SERIAL_LINK_SPEED, F(WIFI_SSID), F(WIFI_PASSWORD), F(WIFI_HOSTNAME), IP_PORT, WIFI_CHANNEL, WIFI_FORCE_AP);
119119
#else
120120
WifiESP::setup();
121+
122+
#if OTA_AUTO_INIT
123+
Diag::OTA = true;
124+
#endif // OTA_AUTO_INIT
125+
121126
#endif // ARDUINO_ARCH_ESP32
122127
#endif // WIFI_ON
123128

0 commit comments

Comments
 (0)