implemented continuous vibration pattern for incoming calls

This commit is contained in:
Florian Kraupa
2021-05-12 20:23:04 +02:00
parent d7fa000b85
commit d13dd6dee3
7 changed files with 78 additions and 24 deletions

View File

@@ -225,7 +225,11 @@ void SystemTask::Work() {
case Messages::OnNewNotification:
if (isSleeping && !isWakingUp)
GoToRunning();
motorController.SetDuration(35);
if (notificationManager.GetLastNotification().category == Controllers::NotificationManager::Categories::IncomingCall) {
motorController.startRunning(50);
} else {
motorController.RunForDuration(35);
}
displayApp->PushMessage(Pinetime::Applications::Display::Messages::NewNotification);
break;
case Messages::BleConnected: