From 5ab56c1e3149349d6721c668d45fadbc5d99b36b Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 30 Nov 2018 11:59:22 +0700 Subject: [PATCH] resolve #203 --- cores/nRF5/utility/SoftwareTimer.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cores/nRF5/utility/SoftwareTimer.h b/cores/nRF5/utility/SoftwareTimer.h index 2bc58865..ac724431 100644 --- a/cores/nRF5/utility/SoftwareTimer.h +++ b/cores/nRF5/utility/SoftwareTimer.h @@ -52,6 +52,11 @@ class SoftwareTimer _handle = xTimerCreate(NULL, ms2tick(ms), true, NULL, callback); } + TimerHandle_t getHandle(void) + { + return _handle; + } + void start(void) { xTimerStart(_handle, 0); } void stop (void) { xTimerStop (_handle, 0); }