修改OTA升级为双线程方式,边收数据边升级

This commit is contained in:
OPTOC
2025-10-20 12:15:17 +08:00
parent c026c49fac
commit 1e15f28f72
4 changed files with 107 additions and 21 deletions

View File

@@ -15,7 +15,7 @@ typedef struct
esp_ota_handle_t ota_handle;
int total_size;
uint16_t ota_data_cnt;
uint8_t ota_buff[20480 + 512];
// uint8_t ota_buff[20480 + 512];
}ota_u_t;
typedef struct