From bf8c4dfef8a0445f25966ca2f2b7aea9f3df6cbf Mon Sep 17 00:00:00 2001 From: tofasthacker Date: Sat, 14 Oct 2023 22:50:41 -0400 Subject: [PATCH] change motor patern on half hour --- src/components/motor/MotorController.cpp | 2 +- src/displayapp/DisplayApp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/motor/MotorController.cpp b/src/components/motor/MotorController.cpp index 96963381..2bbd2a03 100644 --- a/src/components/motor/MotorController.cpp +++ b/src/components/motor/MotorController.cpp @@ -24,7 +24,7 @@ namespace { * The pattern must end with a duration of vibration and a terminator. */ - static constexpr uint8_t vibrationPattern[] = {30, 150, 30, 150, 30, 0}; + static constexpr uint8_t vibrationPattern[] = {10, 100, 50, 200, 10, 0}; static size_t patternPosition = 0; if (vibrationPattern[patternPosition] != 0 && xTimerChangePeriod(vibTimer, vibrationPattern[patternPosition] << 1, 0) == pdPASS && diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp index 0d3cc441..46375698 100644 --- a/src/displayapp/DisplayApp.cpp +++ b/src/displayapp/DisplayApp.cpp @@ -392,7 +392,7 @@ void DisplayApp::Refresh() { time_var = dateTimeController.Minutes(); if (time_var == 30){ NRF_LOG_INFO("Short: %d", time_var); - motorController.RunForDuration(25); + motorController.StartPattern(); } else {