Merge pull request #982 from TomRottler/master
Using the device specific h files instead of RtcDateTime.h directly as mentioned by Makuna
This commit is contained in:
		
						commit
						f262e6bb1f
					
				@ -6,8 +6,7 @@
 | 
			
		||||
 | 
			
		||||
// Time functions
 | 
			
		||||
#ifdef HAS_RTC
 | 
			
		||||
#include <RtcUtility.h>
 | 
			
		||||
#include <RtcDateTime.h>
 | 
			
		||||
#include <RtcDS3231.h>
 | 
			
		||||
#endif
 | 
			
		||||
#include <Ticker.h>
 | 
			
		||||
 | 
			
		||||
@ -114,4 +113,4 @@ typedef struct {
 | 
			
		||||
 | 
			
		||||
extern char clientId[20]; // unique clientID
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
@ -4,7 +4,6 @@
 | 
			
		||||
#ifdef HAS_RTC
 | 
			
		||||
 | 
			
		||||
#include <Wire.h> // must be included here so that Arduino library object file references work
 | 
			
		||||
#include <RtcDS3231.h>
 | 
			
		||||
 | 
			
		||||
#include "globals.h"
 | 
			
		||||
#include "timekeeper.h"
 | 
			
		||||
@ -19,4 +18,4 @@ float get_rtctemp(void);
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#endif // _RTCTIME_H
 | 
			
		||||
#endif // _RTCTIME_H
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user