Skip to content

Commit

Permalink
Fix Ticker::Active crash if _ticker null (espressif#6511) (espressif#…
Browse files Browse the repository at this point in the history
  • Loading branch information
GitNik1 authored Apr 4, 2022
1 parent 6fe1c4c commit f1acc43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/Ticker/src/Ticker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ void Ticker::detach() {
}

bool Ticker::active() {
if (!_timer) return false;
return esp_timer_is_active(_timer);
}

0 comments on commit f1acc43

Please sign in to comment.