Fix alarm on time change
This commit is contained in:
parent
26ae828e39
commit
470db4ab99
|
@ -36,6 +36,8 @@ void DateTime::SetTime(
|
|||
UpdateTime(systickCounter);
|
||||
NRF_LOG_INFO("* %d %d %d ", this->hour, this->minute, this->second);
|
||||
NRF_LOG_INFO("* %d %d %d ", this->day, this->month, this->year);
|
||||
|
||||
systemTask->PushMessage(System::Messages::OnNewTime);
|
||||
}
|
||||
|
||||
void DateTime::UpdateTime(uint32_t systickCounter) {
|
||||
|
|
|
@ -295,6 +295,9 @@ void SystemTask::Work() {
|
|||
case Messages::OnNewTime:
|
||||
ReloadIdleTimer();
|
||||
displayApp.PushMessage(Pinetime::Applications::Display::Messages::UpdateDateTime);
|
||||
if (alarmController.State() == Controllers::AlarmController::AlarmState::Set) {
|
||||
alarmController.ScheduleAlarm();
|
||||
}
|
||||
break;
|
||||
case Messages::OnNewNotification:
|
||||
if (settingsController.GetNotificationStatus() == Pinetime::Controllers::Settings::Notification::ON) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user