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

@@ -140,7 +140,7 @@ void QuickSettings::OnButtonEvent(lv_obj_t* object, lv_event_t event) {
if (lv_obj_get_state(btn3, LV_BTN_PART_MAIN) & LV_STATE_CHECKED) {
settingsController.SetVibrationStatus(Controllers::Settings::Vibration::ON);
motorController.SetDuration(35);
motorController.RunForDuration(35);
lv_label_set_text_static(btn3_lvl, Symbols::notificationsOn);
} else {
settingsController.SetVibrationStatus(Controllers::Settings::Vibration::OFF);