Implement Ticker::active() (#6148)

This commit is contained in:
Clemens Kirchgatterer 2022-01-18 16:40:03 +01:00 committed by GitHub
parent 78b2df74f5
commit a134088a0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,3 +56,7 @@ void Ticker::detach() {
_timer = nullptr;
}
}
bool Ticker::active() {
return esp_timer_is_active(_timer);
}