Implement Ticker::active() (#6148)
This commit is contained in:
parent
78b2df74f5
commit
a134088a0b
1 changed files with 4 additions and 0 deletions
|
|
@ -56,3 +56,7 @@ void Ticker::detach() {
|
||||||
_timer = nullptr;
|
_timer = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Ticker::active() {
|
||||||
|
return esp_timer_is_active(_timer);
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue