summaryrefslogtreecommitdiff
path: root/src/components/motor/MotorController.cpp
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-04-17 13:47:47 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-04-17 13:47:47 (GMT)
commit9f062635af3548425102b976e26ebbdfa998d670 (patch)
tree6f96c7c9a56308c314c187d3639b1054255e06d8 /src/components/motor/MotorController.cpp
parentee9dc8f79eaada3ef5ffdcb4bab9bfe8c2219d0b (diff)
parentaca605d4fb4040cc80c1acf101023aa86e7694ba (diff)
Merge branch 'alarm-reliability-and-switch-to-freertos-timers' into edge
# Conflicts: # src/components/alarm/AlarmController.cpp # src/components/datetime/DateTimeController.cpp # src/components/motor/MotorController.cpp # src/components/timer/TimerController.cpp # src/components/timer/TimerController.h # src/systemtask/Messages.h # src/systemtask/SystemTask.cpp
Diffstat (limited to 'src/components/motor/MotorController.cpp')
-rw-r--r--src/components/motor/MotorController.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/motor/MotorController.cpp b/src/components/motor/MotorController.cpp
index 547d87b..4c44fc4 100644
--- a/src/components/motor/MotorController.cpp
+++ b/src/components/motor/MotorController.cpp
@@ -24,8 +24,7 @@ void MotorController::Ring(TimerHandle_t xTimer) {
}
void MotorController::RunForDuration(uint8_t motorDuration) {
- if (xTimerChangePeriod(shortVibTimer, APP_TIMER_TICKS(motorDuration), 0) == pdPASS
- && xTimerStart(shortVibTimer, 0) == pdPASS) {
+ if (xTimerChangePeriod(shortVibTimer, APP_TIMER_TICKS(motorDuration), 0) == pdPASS && xTimerStart(shortVibTimer, 0) == pdPASS) {
nrf_gpio_pin_clear(PinMap::Motor);
}
}