diff --git a/include/globals.h b/include/globals.h index dc7316b9..1e8a0675 100644 --- a/include/globals.h +++ b/include/globals.h @@ -6,8 +6,7 @@ // Time functions #ifdef HAS_RTC -#include -#include +#include #endif #include @@ -114,4 +113,4 @@ typedef struct { extern char clientId[20]; // unique clientID -#endif \ No newline at end of file +#endif diff --git a/include/rtctime.h b/include/rtctime.h index 802b06ee..cf915bda 100644 --- a/include/rtctime.h +++ b/include/rtctime.h @@ -4,7 +4,6 @@ #ifdef HAS_RTC #include // must be included here so that Arduino library object file references work -#include #include "globals.h" #include "timekeeper.h" @@ -19,4 +18,4 @@ float get_rtctemp(void); #endif -#endif // _RTCTIME_H \ No newline at end of file +#endif // _RTCTIME_H diff --git a/src/rtctime.cpp b/src/rtctime.cpp index 5906f1b7..48116c9a 100644 --- a/src/rtctime.cpp +++ b/src/rtctime.cpp @@ -2,7 +2,6 @@ #include "rtctime.h" - RtcDS3231 Rtc(Wire); // RTC hardware i2c interface // initialize RTC