move app timer def
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "app_timer.h"
|
||||
#include "nrf_drv_clock.h"
|
||||
|
||||
APP_TIMER_DEF(vibTimer);
|
||||
|
||||
using namespace Pinetime::Controllers;
|
||||
|
||||
@@ -36,4 +37,4 @@ void MotorController::SetDuration(uint8_t motorDuration) {
|
||||
nrf_gpio_pin_clear(pinMotor);
|
||||
//start timer for motorDuration miliseconds
|
||||
app_timer_start(vibTimer, APP_TIMER_TICKS(motorDuration), NULL); //timers trigger at end of duration?
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user