From: hcj <1224667075@qq.com> Date: Tue, 29 Oct 2024 07:01:15 +0000 (+0800) Subject: 增加OTA升级文件大小判断 X-Git-Tag: fd230_release_V1.3.102~169 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=f1fd2a010beda8c78ac8beed1e323607d297b178;p=mirrors%2FFD230.git 增加OTA升级文件大小判断 --- diff --git a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c index 32b78629a..48ef3739e 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c @@ -1722,12 +1722,10 @@ static void SetOtherTarget(uint16_t cmd,uint8_t *data,uint16_t len,uint8_t *tota uint8_t target_stand = data[3];//目标站立 uint8_t target_fattime = data[4];//目标燃脂 - uint8_t ring = data[5];//铃声 uint8_t vibratior = data[6];//振动 uint8_t notify = data[7];//通知 - set_goal_discount(target_km); set_goal_standupcount(target_stand); set_goal_durationcount(target_fattime); @@ -7105,7 +7103,7 @@ errcode_t decode_ota_json(ble_read_data *buffer_handle) if(ota_size_json != NULL && cJSON_IsNumber(ota_size_json)) { buffer_handle->file_recv_stat.file_size = ota_size_json->valueint; - if(is_free_ota_update(ota_size_json->valueint)) + if(is_free_ota_update(ota_size_json->valueint)==false) { TRANSMIT_DATA=TRANS_OTA_FAIL; CustomEventPublish(TOPIC_EVENT_BLE_TRANSMIT,&TRANSMIT_DATA,1);