This commit is contained in:
cyberman54 2023-04-17 21:30:27 +02:00
parent 98bf9ef749
commit 1561d6e028
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);

View File

@ -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;