Skip to content

Commit 2e980a1

Browse files
rhapsodyvvgadreau
authored andcommitted
Fix MBL "Click to continue" on Color UI touchscreen (MarlinFirmware#19514)
1 parent 2a1e36d commit 2e980a1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Marlin/src/lcd/menu/menu_bed_leveling.cpp

+10-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
#include "../../module/probe.h"
3737
#endif
3838

39+
#if HAS_GRAPHICAL_TFT
40+
#include "../tft/touch.h"
41+
#include "../tft/tft.h"
42+
#endif
43+
3944
#if EITHER(PROBE_MANUALLY, MESH_BED_LEVELING)
4045

4146
#include "../../module/motion.h"
@@ -159,7 +164,11 @@
159164
// Move to the first probe position
160165
//
161166
void _lcd_level_bed_homing_done() {
162-
if (ui.should_draw()) MenuItem_static::draw(1, GET_TEXT(MSG_LEVEL_BED_WAITING));
167+
if (ui.should_draw()) {
168+
MenuItem_static::draw(1, GET_TEXT(MSG_LEVEL_BED_WAITING));
169+
// Color UI needs a control to detect a touch
170+
TERN_(HAS_GRAPHICAL_TFT, touch.add_control(CLICK, 0, 0, TFT_WIDTH, TFT_HEIGHT));
171+
}
163172
if (ui.use_click()) {
164173
manual_probe_index = 0;
165174
_lcd_level_goto_next_point();

0 commit comments

Comments
 (0)