1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-03-14 18:13:09 +01:00

feat: OTA update display messages

This commit is contained in:
Sen Morgan 2024-02-07 00:07:42 +01:00
parent c0becf9f78
commit c8e3488bee

View File

@ -172,6 +172,22 @@ void loop()
TrackManager::setProgPower(POWERMODE::OFF); TrackManager::setProgPower(POWERMODE::OFF);
// Broadcast power status // Broadcast power status
CommandDistributor::broadcastPower(); CommandDistributor::broadcastPower();
DISPLAY_START (
LCD(0,F("OTA update"));
LCD(1,F("In progress..."));
);
});
ArduinoOTA.onEnd([]() {
DISPLAY_START (
LCD(0,F("OTA update"));
LCD(1,F("Complete"));
);
});
ArduinoOTA.onError([](ota_error_t error) {
DISPLAY_START (
LCD(0,F("OTA update"));
LCD(1,F("Error: %d"), error);
);
}); });
// Set OTA password if defined // Set OTA password if defined
#ifdef OTA_AUTH #ifdef OTA_AUTH