commit
8c7b8730a2
@ -6,8 +6,7 @@
|
|||||||
|
|
||||||
// Time functions
|
// Time functions
|
||||||
#ifdef HAS_RTC
|
#ifdef HAS_RTC
|
||||||
#include <RtcUtility.h>
|
#include <RtcDS3231.h>
|
||||||
#include <RtcDateTime.h>
|
|
||||||
#endif
|
#endif
|
||||||
#include <Ticker.h>
|
#include <Ticker.h>
|
||||||
|
|
||||||
@ -114,4 +113,4 @@ typedef struct {
|
|||||||
|
|
||||||
extern char clientId[20]; // unique clientID
|
extern char clientId[20]; // unique clientID
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
#ifdef HAS_RTC
|
#ifdef HAS_RTC
|
||||||
|
|
||||||
#include <Wire.h> // must be included here so that Arduino library object file references work
|
#include <Wire.h> // must be included here so that Arduino library object file references work
|
||||||
#include <RtcDS3231.h>
|
|
||||||
|
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include "timekeeper.h"
|
#include "timekeeper.h"
|
||||||
@ -19,4 +18,4 @@ float get_rtctemp(void);
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // _RTCTIME_H
|
#endif // _RTCTIME_H
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
#include "rtctime.h"
|
#include "rtctime.h"
|
||||||
|
|
||||||
|
|
||||||
RtcDS3231<TwoWire> Rtc(Wire); // RTC hardware i2c interface
|
RtcDS3231<TwoWire> Rtc(Wire); // RTC hardware i2c interface
|
||||||
|
|
||||||
// initialize RTC
|
// initialize RTC
|
||||||
|
Loading…
Reference in New Issue
Block a user