Skip to content

Commit 6b93318

Browse files
committed
Add default and clean up superfluous begin function.
1 parent 75d2a80 commit 6b93318

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cores/nRF5/utility/SoftwareTimer.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,7 @@ class SoftwareTimer
4747
SoftwareTimer() { _handle = NULL; }
4848
virtual ~SoftwareTimer() { if(_handle != NULL) xTimerDelete(_handle, 0); }
4949

50-
void begin(uint32_t ms, TimerCallbackFunction_t callback)
51-
{
52-
_handle = xTimerCreate(NULL, ms2tick(ms), true, NULL, callback);
53-
}
54-
55-
void begin(uint32_t ms, TimerCallbackFunction_t callback, bool repeating)
50+
void begin(uint32_t ms, TimerCallbackFunction_t callback, bool repeating = true)
5651
{
5752
_handle = xTimerCreate(NULL, ms2tick(ms), repeating, NULL, callback);
5853
}

0 commit comments

Comments
 (0)