diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-04-17 13:47:47 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-04-17 13:47:47 (GMT) |
| commit | 9f062635af3548425102b976e26ebbdfa998d670 (patch) | |
| tree | 6f96c7c9a56308c314c187d3639b1054255e06d8 /src/components/motor/MotorController.cpp | |
| parent | ee9dc8f79eaada3ef5ffdcb4bab9bfe8c2219d0b (diff) | |
| parent | aca605d4fb4040cc80c1acf101023aa86e7694ba (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.cpp | 3 |
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); } } |
