diff options
| author | Reinhold Gschweicher <pyro4hell@gmail.com> | 2022-01-29 22:34:09 (GMT) |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2022-02-19 12:13:36 (GMT) |
| commit | 04eca81a956ad84a5604096515da1ac148fe8921 (patch) | |
| tree | 4e66dae3010515a5ee0037312cf8c6ecc5bb0a10 /src/displayapp/screens/Notifications.h | |
| parent | d5b78ecd6690180f4f0891780dc7fe7a8ef91212 (diff) | |
Notifications: use motorController object instead of class function
We get the motoroController object, so store and use it.
Diffstat (limited to 'src/displayapp/screens/Notifications.h')
| -rw-r--r-- | src/displayapp/screens/Notifications.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/displayapp/screens/Notifications.h b/src/displayapp/screens/Notifications.h index 2f444c7..f49d3b3 100644 --- a/src/displayapp/screens/Notifications.h +++ b/src/displayapp/screens/Notifications.h @@ -39,7 +39,8 @@ namespace Pinetime { Controllers::NotificationManager::Categories, uint8_t notifNb, Modes mode, - Pinetime::Controllers::AlertNotificationService& alertNotificationService); + Pinetime::Controllers::AlertNotificationService& alertNotificationService, + Pinetime::Controllers::MotorController& motorController); ~NotificationItem(); bool IsRunning() const { return running; @@ -56,6 +57,7 @@ namespace Pinetime { lv_obj_t* label_reject; Modes mode; Pinetime::Controllers::AlertNotificationService& alertNotificationService; + Pinetime::Controllers::MotorController& motorController; bool running = true; }; @@ -66,6 +68,7 @@ namespace Pinetime { }; Pinetime::Controllers::NotificationManager& notificationManager; Pinetime::Controllers::AlertNotificationService& alertNotificationService; + Pinetime::Controllers::MotorController& motorController; System::SystemTask& systemTask; Modes mode = Modes::Normal; std::unique_ptr<NotificationItem> currentItem; |
