summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-14 15:53:26 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-14 15:53:26 +0100
commita92b8a813ecf4942988e052d7a4b8f6b2a220de9 (patch)
tree93227a456fc54636a425e0517477d156be25f0f8 /include
parent51a00f59ea9ecb49471b30921f36821fdfa75bc4 (diff)
Uptime: Fix compilation with TIMER_S undefined
Diffstat (limited to 'include')
-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