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

View File

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