InfiniTimeOrg / InfiniSim

Simulator for InfiniTime user interface without needing a PineTime
GNU General Public License v3.0
167 stars 68 forks source link

Conditionally pass Controllers::FS to AlarmController to support save to file #67

Closed NeroBurner closed 2 months ago

NeroBurner commented 2 years ago

Support for https://github.com/InfiniTimeOrg/InfiniTime/pull/1367 which is a rebase/improvement of 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.

To support both the current main branch and the "save-alarm-to-file" PR pass the Filesystem controller conditionally, only if Controller::FS is mentioned in the AlarmController.h file