summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/msp430fr5969lp/driver/uptime.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/msp430fr5969lp/driver/uptime.h b/include/msp430fr5969lp/driver/uptime.h
index a25994d..3a52840 100644
--- a/include/msp430fr5969lp/driver/uptime.h
+++ b/include/msp430fr5969lp/driver/uptime.h
@@ -12,7 +12,11 @@ class Uptime {
#endif
public:
+#ifdef TIMER_S
Uptime () : seconds(0) {}
+#else
+ Uptime () {}
+#endif
inline uint16_t get_us() { return TA0R; }
inline uint16_t get_cycles() { return TA2R; }
#ifdef TIMER_S