49
49
#include " displayapp/screens/settings/SettingChimes.h"
50
50
#include " displayapp/screens/settings/SettingShakeThreshold.h"
51
51
#include " displayapp/screens/settings/SettingBluetooth.h"
52
+ #include " displayapp/screens/settings/SettingNotifVibration.h"
53
+ #include " displayapp/screens/settings/SettingChimeVibration.h"
52
54
53
55
#include " libs/lv_conf.h"
54
56
#include " UserApps.h"
@@ -372,7 +374,7 @@ void DisplayApp::Refresh() {
372
374
} else {
373
375
LoadNewScreen (Apps::Timer, DisplayApp::FullRefreshDirections::Up);
374
376
}
375
- motorController.RunForDuration (35 );
377
+ motorController.RunForDuration (static_cast < uint8_t >(settingsController. GetNotifVibration ()) );
376
378
break ;
377
379
case Messages::AlarmTriggered:
378
380
if (currentApp == Apps::Alarm) {
@@ -384,7 +386,7 @@ void DisplayApp::Refresh() {
384
386
break ;
385
387
case Messages::ShowPairingKey:
386
388
LoadNewScreen (Apps::PassKey, DisplayApp::FullRefreshDirections::Up);
387
- motorController.RunForDuration (35 );
389
+ motorController.RunForDuration (static_cast < uint8_t >(settingsController. GetNotifVibration ()) );
388
390
break ;
389
391
case Messages::TouchEvent: {
390
392
if (state != States::Running) {
@@ -473,7 +475,7 @@ void DisplayApp::Refresh() {
473
475
break ;
474
476
case Messages::Chime:
475
477
LoadNewScreen (Apps::Clock, DisplayApp::FullRefreshDirections::None);
476
- motorController.RunForDuration (35 );
478
+ motorController.RunForDuration (static_cast < uint8_t >(settingsController. GetChimeVibration ()) );
477
479
break ;
478
480
case Messages::OnChargingEvent:
479
481
motorController.RunForDuration (15 );
@@ -562,6 +564,7 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
562
564
notificationManager,
563
565
systemTask->nimble ().alertService (),
564
566
motorController,
567
+ settingsController,
565
568
*systemTask,
566
569
Screens::Notifications::Modes::Normal);
567
570
break ;
@@ -570,6 +573,7 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
570
573
notificationManager,
571
574
systemTask->nimble ().alertService (),
572
575
motorController,
576
+ settingsController,
573
577
*systemTask,
574
578
Screens::Notifications::Modes::Preview);
575
579
break ;
@@ -621,6 +625,12 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
621
625
case Apps::SettingBluetooth:
622
626
currentScreen = std::make_unique<Screens::SettingBluetooth>(this , settingsController);
623
627
break ;
628
+ case Apps::SettingNotifVibration:
629
+ currentScreen = std::make_unique<Screens::SettingNotifVibration>(settingsController, motorController);
630
+ break ;
631
+ case Apps::SettingChimeVibration:
632
+ currentScreen = std::make_unique<Screens::SettingChimeVibration>(settingsController, motorController);
633
+ break ;
624
634
case Apps::BatteryInfo:
625
635
currentScreen = std::make_unique<Screens::BatteryInfo>(batteryController);
626
636
break ;
0 commit comments