From 6df7d90236f93e44a9e52d1b365ce52bfdc9a91f Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Thu, 3 Sep 2026 08:59:05 +0200 Subject: [PATCH] Remove CMD_PM5_BWM_ESP_OTA handling Removed BWM OTA command handling from appmain.c Signed-off-by: Niel Nielsen --- armsrc/appmain.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/armsrc/appmain.c b/armsrc/appmain.c index 492bd696a..ab94d1607 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -3866,25 +3866,6 @@ static void PacketReceived(PacketCommandNG *packet) { break; } #ifdef WITH_BWM_STATUS - case CMD_PM5_BWM_ESP_OTA: { - uint8_t action = packet->data.asBytes[0]; - int ret; - switch (action) { - case BWM_OTA_ACTION_BEGIN: - ret = bwm_esp_ota_begin(*(uint32_t *)(packet->data.asBytes + 1)); - break; - case BWM_OTA_ACTION_WRITE: - ret = bwm_esp_ota_write(packet->data.asBytes + 1, packet->length - 1); - break; - case BWM_OTA_ACTION_END: - ret = bwm_esp_ota_end(); - break; - default: - ret = PM3_EINVARG; - } - reply_ng(CMD_PM5_BWM_ESP_OTA, ret, NULL, 0); - break; - } case CMD_PM5_BWM_SET_VCHG: { // Set the AW32001E charge-voltage target (REG04 VBAT_REG). // Payload: optional uint16 mV (LE); absent -> default.