Skip to content

Commit 165a8ee

Browse files
committed
Add ArduinoTimer::reset()
1 parent d21e3f2 commit 165a8ee

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cores/arduino/timer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,8 @@ void ArduinoTimer::start() {
3030

3131
void ArduinoTimer::stop() {
3232
timer->obj->stop();
33+
}
34+
35+
void ArduinoTimer::reset() {
36+
timer->obj->reset();
3337
}

cores/arduino/timer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ namespace arduino {
1818
~ArduinoTimer();
1919
void start();
2020
void stop();
21+
void reset();
2122

2223
private:
2324
mbed_timer* timer = NULL;

0 commit comments

Comments
 (0)