#include <service/graphic_service.h>
#include "thread_adapter.h"
#include "cmsis_os.h"
+#include "ui_service.h"
extern "C" errcode_t uapi_get_TIME_STR(uint32_t time, char *p_time, char date_separator, char time_separator, date_format_t format);
extern "C" int get_sleep_time_from_config_model(void);
total_minutes += 60; // 转换为正数,加60分钟
}
goal_total_time = total_hours; // 确保最小时间为0小时
+
+ /*通知界面更新*/
+ SendMsgToUIService(UI_UPDATE_SLEEP_DATA, 0, nullptr, 0);
}
// 获取睡眠总时长(小时)
int SleepModel::get_sleep_hour()