Poradi inicializace
This commit is contained in:
parent
73f8bd919a
commit
581749b7f7
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user