From a92b8a813ecf4942988e052d7a4b8f6b2a220de9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 14 Dec 2017 15:53:26 +0100 Subject: Uptime: Fix compilation with TIMER_S undefined --- include/msp430fr5969lp/driver/uptime.h | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3