From 224cf4ad0bd49b2181951c05b20237dfcb3dfb0c Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Thu, 3 Sep 2026 11:05:48 +0200 Subject: [PATCH] Fix OTA action handling in appmain.c Signed-off-by: Niel Nielsen --- armsrc/appmain.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/armsrc/appmain.c b/armsrc/appmain.c index 63f95740c..ae8b890f6 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -3941,7 +3941,11 @@ static void PacketReceived(PacketCommandNG *packet) { uint32_t total_size = 0; if (packet->length >= 5) { memcpy(&total_size, packet->data.asBytes + 1, sizeof(total_size)); - } + } else if (action == BWM_OTA_ACTION_END) { + res = bwm_esp_ota_end(); + } else if (action == BWM_OTA_ACTION_ABORT) { + res = bwm_esp_ota_abort(); + } res = bwm_esp_ota_begin(total_size); break; }