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;
uint8_t vibratior = data[6];//振动\r
uint8_t notify = data[7];//通知\r
\r
- set_goal_caloriescount(target_kcal);\r
+ \r
set_goal_discount(target_km);\r
set_goal_standupcount(target_stand);\r
set_goal_durationcount(target_fattime);\r
+\r
+ set_goal_caloriescount(target_kcal);\r
+ \r
set_SilentMode(ring);\r
set_vibrationremiander(vibratior);\r
+\r
set_notify_switch(notify);\r
sendBuf[17] = 1;\r
sendBuf[18] = Calculate_CRC(sendBuf,18);\r
case 2://mp3\r
TRANSMIT_DATA=TRANS_MP3_FAIL;\r
CustomEventPublish(TOPIC_EVENT_BLE_TRANSMIT,&TRANSMIT_DATA,1);\r
- \r
+\r
break;\r
case 3://dial\r
TRANSMIT_DATA= TRANS_DIAL_FAIL;\r