diff options
| author | petter <39340152+petterhs@users.noreply.github.com> | 2021-01-25 15:47:52 (GMT) |
|---|---|---|
| committer | jlukanc <27705324+jlukanc1@users.noreply.github.com> | 2021-01-25 17:45:04 (GMT) |
| commit | 3dd88339f39089232c40f043a478b9ba47cb1dad (patch) | |
| tree | 6f43eaac7fb7fc70a1932d1722d99492f6160938 /src/displayapp/screens/Notifications.cpp | |
| parent | f27e63290639ca257e88298b60429d72271c4954 (diff) | |
create motorcontroller in main and pass by reference
Diffstat (limited to 'src/displayapp/screens/Notifications.cpp')
| -rw-r--r-- | src/displayapp/screens/Notifications.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/displayapp/screens/Notifications.cpp b/src/displayapp/screens/Notifications.cpp index cfcecec..b777aca 100644 --- a/src/displayapp/screens/Notifications.cpp +++ b/src/displayapp/screens/Notifications.cpp @@ -3,12 +3,16 @@ using namespace Pinetime::Applications::Screens; -Notifications::Notifications(DisplayApp *app, Pinetime::Controllers::NotificationManager ¬ificationManager, Modes mode) : - Screen(app), notificationManager{notificationManager}, mode{mode} { +Notifications::Notifications(DisplayApp *app, + Pinetime::Controllers::NotificationManager ¬ificationManager, + Pinetime::Controllers::MotorController& motorController, + Modes mode) : + Screen(app), notificationManager{notificationManager}, + motorController{motorController}, mode{mode} { + notificationManager.ClearNewNotificationFlag(); auto notification = notificationManager.GetLastNotification(); - motorController.Init(); //start the vibration timer setups if(notification.valid) { currentId = notification.id; |
