5 #include "MutilaDebug.h" 52 Mode() : _state(NotStarted), _lastUpdateMs(0), _updatePeriodMs(0) {;}
86 uint32_t now = Millis();
87 if (MillisSince(_lastUpdateMs, now) > _updatePeriodMs || _state == Started) {
90 if (_state == Started) {
125 uint32_t _lastUpdateMs;
126 uint16_t _updatePeriodMs;
virtual void modeUpdate()=0
void setUpdatePeriod(uint16_t periodMs)
virtual bool isFinished()