From 2b2ca5a5f03afeb94ab3527582f85a49c62d7838 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Tue, 24 Sep 2024 14:32:24 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E7=AB=99=E7=AB=8B=E7=9B=AE?= =?utf8?q?=E6=A0=87=E8=AE=BE=E7=BD=AE=E6=B2=A1=E7=94=9F=E6=95=88bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/goal/src/goalmodel.cpp | 2 +- .../wearable/service/ble_service/bleservice/bleEvent.c | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/goal/src/goalmodel.cpp b/code/sdk/application/wearable/fd230app/nativeui/goal/src/goalmodel.cpp index 0e9878a94..2ec118812 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/goal/src/goalmodel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/goal/src/goalmodel.cpp @@ -116,7 +116,7 @@ namespace OHOS char standstr[20]; char *GoalModel::getstandgoal() { - int standdata = ConfigModel::GetInstance()->get_configData_int(ConfigModel::CONFIGMODEL_ITEM_SPORTS_GOAL_DURATION); + int standdata = ConfigModel::GetInstance()->get_configData_int(ConfigModel::CONFIGMODEL_ITEM_SPORTS_GOAL_STANDUP_TIMES); memset((void *)standstr, 0, 20); sprintf_s(standstr, 20, "/%d", standdata); return standstr; 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 dcbc61ed3..afa09591c 100644 --- a/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c +++ b/code/sdk/application/wearable/service/ble_service/bleservice/bleEvent.c @@ -1573,12 +1573,16 @@ static void SetOtherTarget(uint16_t cmd,uint8_t *data,uint16_t len,uint8_t *tota uint8_t vibratior = data[6];//振动 uint8_t notify = data[7];//通知 - set_goal_caloriescount(target_kcal); + set_goal_discount(target_km); set_goal_standupcount(target_stand); set_goal_durationcount(target_fattime); + + set_goal_caloriescount(target_kcal); + set_SilentMode(ring); set_vibrationremiander(vibratior); + set_notify_switch(notify); sendBuf[17] = 1; sendBuf[18] = Calculate_CRC(sendBuf,18); @@ -7154,7 +7158,7 @@ void decode_file_checksum(ble_read_data *buffer_handle) case 2://mp3 TRANSMIT_DATA=TRANS_MP3_FAIL; CustomEventPublish(TOPIC_EVENT_BLE_TRANSMIT,&TRANSMIT_DATA,1); - + break; case 3://dial TRANSMIT_DATA= TRANS_DIAL_FAIL; -- 2.17.1