trigger vibration from systemtask

This commit is contained in:
petter
2021-02-05 15:43:20 +01:00
parent da56ca5bfb
commit 1bd5457848
5 changed files with 9 additions and 21 deletions

View File

@@ -5,11 +5,9 @@ using namespace Pinetime::Applications::Screens;
Notifications::Notifications(DisplayApp *app,
Pinetime::Controllers::NotificationManager &notificationManager,
Pinetime::Controllers::MotorController& motorController,
Modes mode) :
Screen(app), notificationManager{notificationManager},
motorController{motorController}, mode{mode} {
Modes mode) :
Screen(app), notificationManager{notificationManager}, mode{mode} {
notificationManager.ClearNewNotificationFlag();
auto notification = notificationManager.GetLastNotification();
@@ -29,8 +27,6 @@ Notifications::Notifications(DisplayApp *app,
style_line.line.width = 3;
style_line.line.rounded = 0;
motorController.SetDuration(35);
timeoutLine = lv_line_create(lv_scr_act(), nullptr);
lv_line_set_style(timeoutLine, LV_LINE_STYLE_MAIN, &style_line);
lv_line_set_points(timeoutLine, timeoutLinePoints, 2);