Skip to content

Commit a134088

Browse files
authored
Implement Ticker::active() (#6148)
1 parent 78b2df7 commit a134088

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: libraries/Ticker/src/Ticker.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,7 @@ void Ticker::detach() {
5656
_timer = nullptr;
5757
}
5858
}
59+
60+
bool Ticker::active() {
61+
return esp_timer_is_active(_timer);
62+
}

0 commit comments

Comments
 (0)