diff options
Diffstat (limited to 'source/rtc.hpp')
-rw-r--r-- | source/rtc.hpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/source/rtc.hpp b/source/rtc.hpp index 12dade9..09081a0 100644 --- a/source/rtc.hpp +++ b/source/rtc.hpp @@ -1,3 +1,6 @@ +#ifndef RTC_HPP_ +#define RTC_HPP_ + #include <rtc/nrf_drv_rtc.h> #include "sharp.hpp" @@ -6,8 +9,6 @@ private: static nrf_drv_rtc_t rtc; static unsigned int rtcCount; - static char message[16]; - public: static void begin(void); @@ -19,13 +20,9 @@ public: rtcCount = t; } - static void showTime(Display& display); - - inline static void setMessage(const char *s) { - strncpy(message, s, 16); - } - private: static void handler(nrf_drv_rtc_int_type_t type); }; +#endif // RTC_HPP_ + |