Movatterモバイル変換


[0]ホーム

URL:


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

Commitb5285c3

Browse files
committed
Avoid possible unnecessary time conversion.
1 parent4eab7e4 commitb5285c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎cores/esp8266/PolledTimeout.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class timeoutTemplate
261261
timeType current =TimePolicyT::time();
262262
if(checkExpired(current))
263263
{
264-
unsignedlong n = (current - _start) / _timeout;//how many _timeouts periods have elapsed, will usually be 1 (current - _start >= _timeout)
264+
timeType n = (current - _start) / _timeout;//how many _timeouts periods have elapsed, will usually be 1 (current - _start >= _timeout)
265265
_start += n * _timeout;
266266
returntrue;
267267
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp