From f1fd2a010beda8c78ac8beed1e323607d297b178 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Tue, 29 Oct 2024 15:01:15 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0OTA=E5=8D=87=E7=BA=A7=E6=96=87?= =?utf8?q?=E4=BB=B6=E5=A4=A7=E5=B0=8F=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/service/ble_service/bleservice/bleEvent.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); -- 2.17.1