mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-12-12 01:01:54 +00:00
Incrementing date workaround for dead RTC battery (#1479)
* Enable f_utime function * Added file_update_date() function * Added rtc_battery_workaround() function * Update ui_navigation.cpp
This commit is contained in:
@@ -44,6 +44,9 @@
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
|
||||
// for incrementing fake date when RTC battery is dead
|
||||
#define DATE_FILEFLAG u"/SETTINGS/DATE_FILEFLAG"
|
||||
|
||||
using namespace sd_card;
|
||||
|
||||
namespace ui {
|
||||
@@ -235,6 +238,7 @@ class SystemStatusView : public View {
|
||||
void on_title();
|
||||
void refresh();
|
||||
void on_clk();
|
||||
void rtc_battery_workaround();
|
||||
|
||||
MessageHandlerRegistration message_handler_refresh{
|
||||
Message::ID::StatusRefresh,
|
||||
|
||||
Reference in New Issue
Block a user