Skip to content

Commit ab767a4

Browse files
authored
🐛 Fix TFT Color UI LCD_HEIGHT (MarlinFirmware#25281)
1 parent 0e748da commit ab767a4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Marlin/src/inc/Conditionals_LCD.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -1620,9 +1620,11 @@
16201620
#define HAS_UI_1024x600 1
16211621
#endif
16221622
#if ANY(HAS_UI_320x240, HAS_UI_480x320, HAS_UI_480x272)
1623-
#define LCD_HEIGHT TERN(TOUCH_SCREEN, 6, 7) // Fewer lines with touch buttons onscreen
1624-
#elif HAS_UI_240x320
1625-
#define LCD_HEIGHT TERN(TOUCH_SCREEN, 8, 6) // Fewer lines with touch buttons onscreen
1623+
#if ENABLED(TFT_COLOR_UI_PORTRAIT)
1624+
#define LCD_HEIGHT TERN(TOUCH_SCREEN, 6, 7) // Fewer lines with touch buttons onscreen
1625+
#else
1626+
#define LCD_HEIGHT TERN(TOUCH_SCREEN, 8, 9) // Fewer lines with touch buttons onscreen
1627+
#endif
16261628
#elif HAS_UI_1024x600
16271629
#define LCD_HEIGHT TERN(TOUCH_SCREEN, 12, 13) // Fewer lines with touch buttons onscreen
16281630
#endif

0 commit comments

Comments
 (0)