Skip to content

Commit cd7284f

Browse files
Update for InfiniTime PR #2141 (StopWatch: add persistence) (#163)
InfiniTime change InfiniTimeOrg/InfiniTime#2141
1 parent 403a3eb commit cd7284f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ target_sources(infinisim PUBLIC
185185
${InfiniTime_DIR}/src/displayapp/DisplayApp.cpp
186186
${InfiniTime_DIR}/src/buttonhandler/ButtonHandler.h
187187
${InfiniTime_DIR}/src/buttonhandler/ButtonHandler.cpp
188+
${InfiniTime_DIR}/src/components/stopwatch/StopWatchController.h
189+
${InfiniTime_DIR}/src/components/stopwatch/StopWatchController.cpp
188190
${InfiniTime_DIR}/src/components/alarm/AlarmController.h
189191
${InfiniTime_DIR}/src/components/alarm/AlarmController.cpp
190192
${InfiniTime_DIR}/src/components/ble/BleController.h

main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ Pinetime::Controllers::MotionController motionController;
362362
Pinetime::Controllers::TimerController timerController;
363363
#endif
364364

365+
Pinetime::Controllers::StopWatchController stopWatchController {};
365366
#if defined(ALARMCONTROLLER_NEEDS_FS)
366367
Pinetime::Controllers::AlarmController alarmController {dateTimeController, fs};
367368
#else
@@ -385,6 +386,7 @@ Pinetime::Applications::DisplayApp displayApp(lcd,
385386
#if defined(INFINITIME_TIMERCONTROLLER)
386387
timerController,
387388
#endif
389+
stopWatchController,
388390
alarmController,
389391
brightnessController,
390392
touchHandler,
@@ -401,6 +403,7 @@ Pinetime::System::SystemTask systemTask(spi,
401403
#if defined(INFINITIME_TIMERCONTROLLER)
402404
timerController,
403405
#endif
406+
stopWatchController,
404407
alarmController,
405408
watchdog,
406409
notificationManager,

0 commit comments

Comments
 (0)