Skip to content

Commit f1acc43

Browse files
authored
Fix Ticker::Active crash if _ticker null (espressif#6511) (espressif#6513)
1 parent 6fe1c4c commit f1acc43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: libraries/Ticker/src/Ticker.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@ void Ticker::detach() {
5858
}
5959

6060
bool Ticker::active() {
61+
if (!_timer) return false;
6162
return esp_timer_is_active(_timer);
6263
}

0 commit comments

Comments
 (0)