From 581749b7f7e0c9e8a9dd553e1fd09f092a621db0 Mon Sep 17 00:00:00 2001 From: Pavel Brychta Date: Sat, 23 Nov 2019 12:08:38 +0100 Subject: [PATCH] Poradi inicializace --- src/interval.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);