Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f1acc43

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎libraries/Ticker/src/Ticker.cpp‎

Lines changed: 1 addition & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /