File tree 2 files changed +3
-3
lines changed
libraries/ESP8266WiFiMesh/src 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ class timeoutTemplate
270
270
}
271
271
272
272
IRAM_ATTR // fast
273
- bool expiredOneShot ()
273
+ bool expiredOneShot () const
274
274
{
275
275
// returns "always expired" or "has expired"
276
276
if (!canWait ()) return true ;
@@ -285,7 +285,7 @@ class timeoutTemplate
285
285
timeType _timeout;
286
286
timeType _start;
287
287
bool _neverExpires;
288
- bool _oneShotExpired;
288
+ mutable bool _oneShotExpired;
289
289
};
290
290
291
291
// 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