#endif
#include "alarmclocktimerconfig/include/AlarmClockTimerConfig.h"
+#include "sleep/include/SleepModel.h"
void set_ota_upgrade_(void)
{
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP,"睡前提醒 %d\r\n",data.bedtime_alarm);
p_ConfigModel->set_condigData_Int(OHOS::ConfigModel::CONFIGMODEL_ITEM_SLEEP_REMIND,data.bedtime_alarm);
- #ifdef SUPPORT_SLEEP_MODEL
//更新睡眠配置
OHOS::SleepModel::GetInstance().set_sleep_goal();
set_sleep_and_wake_time();
//OHOS::clean_sleep_file(); //重设睡眠时间段 删除历史文件
get_sleep_time_notify();
- #endif
}
return;
}