fix issue #956
This commit is contained in:
parent
98bf9ef749
commit
1561d6e028
@ -456,7 +456,7 @@ void setup() {
|
|||||||
#endif // HAS_BUTTON
|
#endif // HAS_BUTTON
|
||||||
|
|
||||||
// only if we have a timesource we do timesync
|
// only if we have a timesource we do timesync
|
||||||
#if ((HAS_LORA_TIME) || (HAS_GPS) || (HAS_RTC))
|
#if ((HAS_LORA_TIME) || (HAS_GPS) || defined HAS_RTC)
|
||||||
time_init();
|
time_init();
|
||||||
strcat_P(features, " TIME");
|
strcat_P(features, " TIME");
|
||||||
#endif // timesync
|
#endif // timesync
|
||||||
|
@ -8,7 +8,7 @@ RtcDS3231<TwoWire> Rtc(Wire); // RTC hardware i2c interface
|
|||||||
// initialize RTC
|
// initialize RTC
|
||||||
uint8_t rtc_init(void) {
|
uint8_t rtc_init(void) {
|
||||||
Wire.begin(HAS_RTC);
|
Wire.begin(HAS_RTC);
|
||||||
Rtc.Begin(MY_DISPLAY_SDA, MY_DISPLAY_SCL);
|
Rtc.Begin(HAS_RTC);
|
||||||
|
|
||||||
// configure RTC chip
|
// configure RTC chip
|
||||||
Rtc.Enable32kHzPin(false);
|
Rtc.Enable32kHzPin(false);
|
||||||
|
@ -82,7 +82,7 @@ void calibrateTime(void) {
|
|||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ((HAS_GPS) || (HAS_RTC))
|
#if ((HAS_GPS) || defined HAS_RTC)
|
||||||
time_t t = 0;
|
time_t t = 0;
|
||||||
uint16_t t_msec = 0;
|
uint16_t t_msec = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user