* OTA update for ESP32 targets

This commit is contained in:
Scott Powell 2025-03-22 23:51:44 +11:00
parent 30c6a0bc76
commit a4bb3782a4
22 changed files with 2105 additions and 15 deletions

View file

@ -129,9 +129,7 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
strcpy(reply, "ERR: clock cannot go backwards");
}
} else if (memcmp(command, "start ota", 9) == 0) {
if (_board->startOTAUpdate()) {
strcpy(reply, "OK");
} else {
if (!_board->startOTAUpdate(_prefs->node_name, reply)) {
strcpy(reply, "Error");
}
} else if (memcmp(command, "clock", 5) == 0) {