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!@"));