health_info->blood_low_value = s_health_info.blood_low_value;
health_info->spo2_value = s_health_info.spo2_value;
health_info->body_value = s_health_info.body_value;
- memcpy(&(health_info->heart_time), &(s_health_info.heart_time), sizeof(hal_rtc_t));
+ //memcpy(&(health_info->heart_time), &(s_health_info.heart_time), sizeof(hal_rtc_t));
#endif
+ _lv_memcpy(&(health_info->heart_time), &(s_health_info.heart_time), sizeof(hal_rtc_t));
}
void mmi_health_info_set(nv_watch_health_info_t * health_info)
s_health_info.blood_low_value = health_info->blood_low_value;
s_health_info.spo2_value = health_info->spo2_value;
s_health_info.body_value = health_info->body_value;
- memcpy(&(s_health_info.heart_time), &(health_info->heart_time), sizeof(hal_rtc_t));
+ //memcpy(&(s_health_info.heart_time), &(health_info->heart_time), sizeof(hal_rtc_t));
+ _lv_memcpy(&(s_health_info.heart_time), &(health_info->heart_time), sizeof(hal_rtc_t));
uint32_t nv_data_length = sizeof(nv_watch_health_info_t);
#define MMI_GUI_TIMING_TIMER_INTERVAL (3 * 1000) // ms
#define MMI_GUI_TIMING_TASK_PRIORITY 219
-#define MMI_GUI_TIMING_TASK_STACK_SIZE (1024 * 8) // (1 * 1024)
+#define MMI_GUI_TIMING_TASK_STACK_SIZE (1024 * 4) // (1 * 1024)
#define MMI_GUI_TIMING_MSG_QUEUE_SIZE (16)
#ifdef __MMI_CUSTOM_HENGAI_SLEEP_K18__
#define MMI_WATCH_SLEEP_TASK_PRIORITY 221
-#define MMI_WATCH_SLEEP_TASK_STACK_SIZE (1024 * 16) // (1 * 1024)
+#define MMI_WATCH_SLEEP_TASK_STACK_SIZE (1024 * 8) // (1 * 1024)
#define MMI_WATCH_SLEEP_MSG_QUEUE_SIZE (32) // (16)
mmi_protocol_action_send_heart(heart_value);
+ hal_rtc_t cur_time = {0};
nv_watch_health_info_t health_info = {0};
mmi_health_info_get(&health_info);
health_info.heart_value = heart_value;
- Hal_Rtc_Gettime(&(health_info.heart_time));
+ //Hal_Rtc_Gettime(&(health_info.heart_time));
+ Hal_Rtc_Gettime(&cur_time);
+ _lv_memcpy(&(health_info.heart_time), &cur_time, sizeof(hal_rtc_t));
+
mmi_health_info_set(&health_info);
}
#define MMI_HEALTH_MEASURE_TASK_PRIORITY 221
-#define MMI_HEALTH_MEASURE_TASK_STACK_SIZE (1024 * 16) // (8 * 1024)
+#define MMI_HEALTH_MEASURE_TASK_STACK_SIZE (8 * 1024)
#define MMI_HEALTH_MEASURE_MSG_QUEUE_SIZE (16)
TASK_HANDLE * s_health_measure_task_id = NULL;