From 5723ca09c000e901a30fd7b37fa67c00ee17aaeb Mon Sep 17 00:00:00 2001 From: Just Call Me Koko Date: Thu, 8 Dec 2022 12:43:44 -0500 Subject: [PATCH] Add SD update to CLI --- esp32_marauder/CommandLine.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/esp32_marauder/CommandLine.cpp b/esp32_marauder/CommandLine.cpp index 206f7bb..15baf9a 100644 --- a/esp32_marauder/CommandLine.cpp +++ b/esp32_marauder/CommandLine.cpp @@ -486,6 +486,11 @@ void CommandLine::runCommand(String input) { Serial.println("SD card is not connected. Cannot perform SD Update"); return; } + wifi_scan_obj.currentScanMode = OTA_UPDATE; + #ifdef HAS_SCREEN + changeMenu(&failedUpdateMenu); + #endif + sd_obj.runUpdate(); } } }