diff --git a/cores/nRF5/utility/SoftwareTimer.cpp b/cores/nRF5/utility/SoftwareTimer.cpp index d86a0490..84c64c0e 100644 --- a/cores/nRF5/utility/SoftwareTimer.cpp +++ b/cores/nRF5/utility/SoftwareTimer.cpp @@ -34,9 +34,9 @@ SoftwareTimer::~SoftwareTimer () if ( _handle != NULL ) xTimerDelete(_handle, 0); } -void SoftwareTimer::begin(uint32_t ms, TimerCallbackFunction_t callback, bool repeating) +void SoftwareTimer::begin(uint32_t ms, TimerCallbackFunction_t callback, void* timerID, bool repeating) { - _handle = xTimerCreate(NULL, ms2tick(ms), repeating, NULL, callback); + _handle = xTimerCreate(NULL, ms2tick(ms), repeating, timerID, callback); } bool SoftwareTimer::start(void) diff --git a/cores/nRF5/utility/SoftwareTimer.h b/cores/nRF5/utility/SoftwareTimer.h index 7649187c..24453c49 100644 --- a/cores/nRF5/utility/SoftwareTimer.h +++ b/cores/nRF5/utility/SoftwareTimer.h @@ -47,7 +47,7 @@ class SoftwareTimer SoftwareTimer(); virtual ~SoftwareTimer(); - void begin(uint32_t ms, TimerCallbackFunction_t callback, bool repeating = true); + void begin(uint32_t ms, TimerCallbackFunction_t callback, void* timerID = NULL, bool repeating = true); TimerHandle_t getHandle(void) { return _handle; } bool start(void);