From f46dcc904695036b01005b422a715b555261df0d Mon Sep 17 00:00:00 2001 From: Reinhold Gschweicher Date: Mon, 19 Sep 2022 21:43:53 +0200 Subject: [PATCH] Pass Controllers::FS to AlarmController to support save to file Support for https://github.com/InfiniTimeOrg/InfiniTime/pull/1333 by @ght The PR adds saving and restoring alarm state to the SPI NOR flash. So the AlarmController needs the FileSystem-controller to work. --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index ce04fdd..2d66d5c 100644 --- a/main.cpp +++ b/main.cpp @@ -340,7 +340,7 @@ Pinetime::Drivers::WatchdogView watchdogView(watchdog); Pinetime::Controllers::NotificationManager notificationManager; Pinetime::Controllers::MotionController motionController; Pinetime::Controllers::TimerController timerController; -Pinetime::Controllers::AlarmController alarmController {dateTimeController}; +Pinetime::Controllers::AlarmController alarmController {dateTimeController, fs}; Pinetime::Controllers::TouchHandler touchHandler(touchPanel, lvgl); Pinetime::Controllers::ButtonHandler buttonHandler; Pinetime::Controllers::BrightnessController brightnessController {};