Move Backup to the system task.

This commit is contained in:
Tim Keller
2021-08-19 00:51:12 +00:00
parent 2dd7b8ba2c
commit 4f6d7e2c63
4 changed files with 2 additions and 2 deletions

View File

@@ -353,6 +353,7 @@ void SystemTask::Work() {
monitor.Process();
uint32_t systick_counter = nrf_rtc_counter_get(portNRF_RTC_REG);
dateTimeController.UpdateTime(systick_counter);
NoInit_BackUpTime = dateTimeController.CurrentDateTime();
if (!nrf_gpio_pin_read(pinButton))
watchdog.Kick();
}