Poradi inicializace

This commit is contained in:
Pavel Brychta 2019-11-23 12:08:38 +01:00
parent 73f8bd919a
commit 581749b7f7

View File

@ -17,8 +17,8 @@ protected:
uint8_t _mode; // mode of actual operation (compatibility, oneshot, periodic) uint8_t _mode; // mode of actual operation (compatibility, oneshot, periodic)
uint8_t _done; uint8_t _done;
public: public:
Interval(): _mode(0), _done(0xff), _timefrom(0), _timeout(0) {} // compatibility mode autostart Interval():_timefrom(0), _timeout(0), _mode(0), _done(0xff) {} // compatibility mode autostart
Interval(uint32_t tmout): _timeout(tmout), _mode(2), _done(0xff), _timefrom(0) {} // periodic mode autostart Interval(uint32_t tmout): _timefrom(0), _timeout(tmout), _mode(2), _done(0xff) {} // periodic mode autostart
bool expired(void); bool expired(void);
void set(uint32_t tmout); void set(uint32_t tmout);
void setOneshot(uint32_t tmout); void setOneshot(uint32_t tmout);