Fix Ticker::Active crash if _ticker null (#6511) (#6513)

This commit is contained in:
GitNik1 2022-04-04 13:45:14 +02:00 committed by GitHub
parent 6fe1c4c5d6
commit f1acc432af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,5 +58,6 @@ void Ticker::detach() {
}
bool Ticker::active() {
if (!_timer) return false;
return esp_timer_is_active(_timer);
}