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 2a7e509

Browse filesBrowse files
full-stack-exme-no-dev
authored andcommitted
Fix long Ticker period conversion: cast ms to uint64_t when calculating us (espressif#3175)
* Fix long Ticker period conversion * Simplify long Ticker period conversion fix by using 1000ULL
1 parent 1b8c7e3 commit 2a7e509
Copy full SHA for 2a7e509

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎libraries/Ticker/src/Ticker.cpp

Copy file name to clipboardExpand all lines: libraries/Ticker/src/Ticker.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ void Ticker::_attach_ms(uint32_t milliseconds, bool repeat, callback_with_arg_t
4343
}
4444
esp_timer_create(&_timerConfig, &_timer);
4545
if (repeat) {
46-
esp_timer_start_periodic(_timer, milliseconds * 1000);
46+
esp_timer_start_periodic(_timer, milliseconds * 1000ULL);
4747
} else {
48-
esp_timer_start_once(_timer, milliseconds * 1000);
48+
esp_timer_start_once(_timer, milliseconds * 1000ULL);
4949
}
5050
}
5151

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.