diff options
| author | Michele Bini <michele.bini@gmail.com> | 2022-03-31 12:52:38 (GMT) |
|---|---|---|
| committer | Michele Bini <michele.bini@gmail.com> | 2022-03-31 12:52:38 (GMT) |
| commit | 99321f0cd3181d4cd6a00f69cd9b554c63c52849 (patch) | |
| tree | f645f4b83f5dabe2992b7456d7a485e62b3e9f46 /src/components/motor/MotorController.cpp | |
| parent | 834dd497323420e3ef77de69123249b8863dba04 (diff) | |
Add back stopwatch and timer
Diffstat (limited to 'src/components/motor/MotorController.cpp')
| -rw-r--r-- | src/components/motor/MotorController.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/motor/MotorController.cpp b/src/components/motor/MotorController.cpp index bee07fb..c794a02 100644 --- a/src/components/motor/MotorController.cpp +++ b/src/components/motor/MotorController.cpp @@ -12,6 +12,7 @@ using namespace Pinetime::Controllers; void MotorController::Init() { nrf_gpio_cfg_output(PinMap::Motor); nrf_gpio_pin_set(PinMap::Motor); + app_timer_init(); app_timer_create(&shortVibTimer, APP_TIMER_MODE_SINGLE_SHOT, StopMotor); app_timer_create(&longVibTimer, APP_TIMER_MODE_REPEATED, Ring); |
