diff --git a/src/interval.h b/src/interval.h index d45c84c..cd4e0de 100644 --- a/src/interval.h +++ b/src/interval.h @@ -17,8 +17,8 @@ protected: uint8_t _mode; // mode of actual operation (compatibility, oneshot, periodic) uint8_t _done; public: - Interval(): _mode(0), _done(0xff), _timefrom(0), _timeout(0) {} // compatibility mode autostart - Interval(uint32_t tmout): _timeout(tmout), _mode(2), _done(0xff), _timefrom(0) {} // periodic mode autostart + Interval():_timefrom(0), _timeout(0), _mode(0), _done(0xff) {} // compatibility mode autostart + Interval(uint32_t tmout): _timefrom(0), _timeout(tmout), _mode(2), _done(0xff) {} // periodic mode autostart bool expired(void); void set(uint32_t tmout); void setOneshot(uint32_t tmout);