aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/LittleVgl.cpp
diff options
context:
space:
mode:
authorNeroBurner <pyro4hell@gmail.com>2024-09-28 08:14:08 +0200
committerGitHub <noreply@github.com>2024-09-28 08:14:08 +0200
commita0cd439efc9b0d0d9610dea7ff749f102d5a316d (patch)
treee03cfd44b5acb648d40c0bb07ff4002e56cf0733 /src/displayapp/LittleVgl.cpp
parent997e4cee8cc78a6e0b68cc78b604dc342f22b584 (diff)
Alarm persist to flash (#1367)
* AlarmController: Add saving alarm time to file Save the set alarm time to the SPI NOR flash, so it does not reset to the default value when the watch resets, e.g. due to watchdog timeout or reflashing of a new version of InfiniTime. Just like the `Settings.h` `LoadSettingsFromFile()` the previous alarm at boot (if available) and `SaveSettingsToFile()` the current alarm when the `Alarm.h` screen is closed (only if the settings have changed). The alarm-settings file is stored in `.system/alarm.dat`. The `.system` folder is created if it doesn't yet exist. Fixes: https://github.com/InfiniTimeOrg/InfiniTime/issues/1330 * alarmController: close .system dir after usage Close the `lfs_dir` object for the `.system` dir after usage. Otherwise on the second changed alarm the system will lockup because the `.system` dir is already open and was never closed. --------- Co-authored-by: Galdor Takacs <g@ldor.de>
Diffstat (limited to 'src/displayapp/LittleVgl.cpp')
0 files changed, 0 insertions, 0 deletions