diff options
| author | Tim Keller <geekboy1011@gmail.com> | 2021-08-19 00:51:12 +0000 |
|---|---|---|
| committer | Tim Keller <geekboy1011@gmail.com> | 2021-08-19 00:51:12 +0000 |
| commit | 4f6d7e2c6386ed584a54a513c811cb77b5d320e1 (patch) | |
| tree | 229883b7e952f7ed34eb90b7b41ea7892c1532ca /src/systemtask/SystemTask.cpp | |
| parent | 2dd7b8ba2c0c8f756eddd9c86a40497f1b7f7537 (diff) | |
Move Backup to the system task.
Diffstat (limited to 'src/systemtask/SystemTask.cpp')
| -rw-r--r-- | src/systemtask/SystemTask.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index 3553f449..add591e7 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -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(); } |
