forked from xuos/xiuos
add the totle length with the last frame of ota server
This commit is contained in:
parent
25cd73821f
commit
2930757728
|
@ -207,6 +207,7 @@ try_again:
|
||||||
|
|
||||||
len = read(file_fd, file_buf, file_length);
|
len = read(file_fd, file_buf, file_length);
|
||||||
if(len > 0) {
|
if(len > 0) {
|
||||||
|
data.header.total_len = file_length;
|
||||||
data.frame.frame_len = strlen("aiit_ota_end!@");;
|
data.frame.frame_len = strlen("aiit_ota_end!@");;
|
||||||
data.frame.crc = OtaCrc16(file_buf, len);
|
data.frame.crc = OtaCrc16(file_buf, len);
|
||||||
memcpy(data.frame.frame_data,"aiit_ota_end!@",strlen("aiit_ota_end!@"));
|
memcpy(data.frame.frame_data,"aiit_ota_end!@",strlen("aiit_ota_end!@"));
|
||||||
|
|
Loading…
Reference in New Issue