File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
libraries/ESP8266WiFiMesh/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ class timeoutTemplate
269
269
}
270
270
271
271
IRAM_ATTR // fast
272
- bool expiredOneShot ()
272
+ bool expiredOneShot () const
273
273
{
274
274
// returns "always expired" or "has expired"
275
275
if (!canWait ()) return true ;
@@ -284,7 +284,7 @@ class timeoutTemplate
284
284
timeType _timeout;
285
285
timeType _start;
286
286
bool _neverExpires;
287
- bool _oneShotExpired;
287
+ mutable bool _oneShotExpired;
288
288
};
289
289
290
290
// legacy type names, deprecated (unit is milliseconds)
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ class ExpiringTimeTracker : private esp8266::polledTimeout::oneShotMs {
61
61
* Get the time since the ExpiringTimeTracker instance creation or the last reset(), whichever is more recent.
62
62
*/
63
63
uint32_t elapsedTime () const ;
64
- bool expired ();
64
+ bool expired () const ;
65
65
void reset ();
66
66
void reset (const uint32_t newDuration);
67
67
void reset (const calculatorType newDurationCalculator);
You can’t perform that action at this time.
0 commit comments