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

Appearance settings

Commit f1acc43

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎libraries/Ticker/src/Ticker.cpp

Copy file name to clipboardExpand all lines: libraries/Ticker/src/Ticker.cpp
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.