Skip to content

Commit 16276d3

Browse files
fix: Compilation error when X9D and USE_RTC_CLOCK=OFF (#4040)
1 parent 65ee80f commit 16276d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

radio/src/gui/212x64/radio_setup.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ void menuRadioSetup(event_t event)
230230
uint8_t attr = (sub == k ? blink : 0);
231231

232232
switch (k) {
233+
#if defined(RTCLOCK)
233234
case ITEM_RADIO_SETUP_DATE:
234235
lcdDrawTextAlignedLeft(y, STR_DATE);
235236
lcdDrawChar(RADIO_SETUP_DATE_COLUMN, y, '-'); lcdDrawChar(RADIO_SETUP_DATE_COLUMN+3*FW-2, y, '-');
@@ -287,6 +288,7 @@ void menuRadioSetup(event_t event)
287288
g_rtcTime = gmktime(&t); // update local timestamp and get wday calculated
288289
}
289290
break;
291+
#endif
290292

291293
case ITEM_RADIO_SETUP_BATTERY_CALIB:
292294
lcdDrawTextAlignedLeft(y, STR_BATT_CALIB);

0 commit comments

Comments
 (0)