From: CCC <2393524978@qq.com> Date: Wed, 25 Oct 2023 01:44:24 +0000 (+0800) Subject: gengxin X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=c45c6b1c335c49a863fe49beaed0be05e0e6814b;p=mirrors%2FASR3603_Z5.git gengxin --- diff --git a/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.c b/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.c index 1b762fe6..c78b84c6 100644 --- a/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.c +++ b/2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.c @@ -1735,7 +1735,7 @@ static unsigned int mmi_protocol_fzd_action_send_content_fill_location_data(unsi { unsigned char * t_ptr = NULL; unsigned int t_count = 0; - hal_rtc_t cur_time = {0}; + hal_rtc_t cur_time = {0}, cur_utc_time = {0}; unsigned int battery_value = Hal_Battery_Get_Status(); unsigned int sleep_roll_value = 0; unsigned int step_value = asl_pedometer_steps_get(); @@ -1745,9 +1745,15 @@ static unsigned int mmi_protocol_fzd_action_send_content_fill_location_data(unsi t_ptr = content_buff; //seperator & time +#if 1 + Hal_Rtc_Gettime_Utc(&cur_utc_time); + sprintf(t_ptr, ",%02u%02u%02u,%02u%02u%02u", cur_utc_time.tm_year%100, cur_utc_time.tm_mon, cur_utc_time.tm_mday, + cur_utc_time.tm_hour, cur_utc_time.tm_min, cur_utc_time.tm_sec); +#else Hal_Rtc_Gettime(&cur_time); sprintf(t_ptr, ",%02u%02u%02u,%02u%02u%02u", cur_time.tm_year%100, cur_time.tm_mon, cur_time.tm_mday, cur_time.tm_hour, cur_time.tm_min, cur_time.tm_sec); +#endif t_count = strlen(t_ptr); //gps