Skip to content

Commit 21b6afa

Browse files
committed
Rename and reformat according to review.
1 parent 1f5b6a1 commit 21b6afa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cores/esp8266/PolledTimeout.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,12 @@ class timeoutTemplate
224224
}
225225

226226
IRAM_ATTR // fast
227-
timeType expiresIn()
227+
timeType remaining() const
228228
{
229-
if (_neverExpires) return timeMax();
230-
if (expired()) return TimePolicyT::toUserUnit(0);
229+
if (_neverExpires)
230+
return timeMax();
231+
if (expired())
232+
return TimePolicyT::toUserUnit(0);
231233
return TimePolicyT::toUserUnit(_timeout - (_current - _start));
232234
}
233235

0 commit comments

Comments
 (0)