From 2930757728f22eb19276d3bd0a87bf3f42c24762 Mon Sep 17 00:00:00 2001 From: Wang_Weigen Date: Mon, 15 Nov 2021 10:12:45 +0800 Subject: [PATCH] add the totle length with the last frame of ota server --- APP_Framework/Applications/ota/ota_server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/APP_Framework/Applications/ota/ota_server.c b/APP_Framework/Applications/ota/ota_server.c index 84ab322d8..ba01e6d48 100644 --- a/APP_Framework/Applications/ota/ota_server.c +++ b/APP_Framework/Applications/ota/ota_server.c @@ -207,6 +207,7 @@ try_again: len = read(file_fd, file_buf, file_length); if(len > 0) { + data.header.total_len = file_length; data.frame.frame_len = strlen("aiit_ota_end!@");; data.frame.crc = OtaCrc16(file_buf, len); memcpy(data.frame.frame_data,"aiit_ota_end!@",strlen("aiit_ota_end!@"));