Fix OTA action handling in appmain.c

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
This commit is contained in:
Niel Nielsen authored and GitHub committed 2026-09-03 11:05:48 +02:00
1 parent 365fade8dd
commit 224cf4ad0b
1 file changed
+5 -1
+5 -1
View File
@@ -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;
}