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 20e6378

Browse filesBrowse files
committed
Fix comment, remove redundant parentheses
1 parent 4cbe06b commit 20e6378
Copy full SHA for 20e6378

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

‎cores/esp8266/PolledTimeout.h

Copy file name to clipboardExpand all lines: cores/esp8266/PolledTimeout.h
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ class timeoutTemplate
247247
bool checkExpired(const timeType internalUnit) const
248248
{
249249
// canWait() is not checked here
250-
// returns "can expire" and "oneshot not expired" and "time expired"
251-
return (_oneShotExpired) || ((!_neverExpires) && ((internalUnit - _start) >= _timeout));
250+
// returns "oneshot has expired", otherwise returns "can expire" and "time has expired"
251+
return _oneShotExpired || (!_neverExpires && ((internalUnit - _start) >= _timeout));
252252
}
253253

254254
protected:

0 commit comments

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