Skip to content
Snippets Groups Projects
Commit a92b8a81 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Uptime: Fix compilation with TIMER_S undefined

parent 51a00f59
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment