fix: Compilation error when X9D and USE_RTC_CLOCK=OFF (#4040)

This commit is contained in:
Frank Zhao
2023-09-14 19:27:08 +10:00
committed by GitHub
parent 65ee80f159
commit 16276d3d15
+2
View File
@@ -230,6 +230,7 @@ void menuRadioSetup(event_t event)
uint8_t attr = (sub == k ? blink : 0);
switch (k) {
#if defined(RTCLOCK)
case ITEM_RADIO_SETUP_DATE:
lcdDrawTextAlignedLeft(y, STR_DATE);
lcdDrawChar(RADIO_SETUP_DATE_COLUMN, y, '-'); lcdDrawChar(RADIO_SETUP_DATE_COLUMN+3*FW-2, y, '-');
@@ -287,6 +288,7 @@ void menuRadioSetup(event_t event)
g_rtcTime = gmktime(&t); // update local timestamp and get wday calculated
}
break;
#endif
case ITEM_RADIO_SETUP_BATTERY_CALIB:
lcdDrawTextAlignedLeft(y, STR_BATT_CALIB);