From 4ca0012077c4a2b870d78d6b384d97eeae53b169 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Mon, 18 Jul 2022 15:57:56 +0200 Subject: [PATCH] Prevent longpress if a serious error is set --- Firmware/ultralcd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index ce5adf3c..e23a67b2 100755 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -8076,9 +8076,9 @@ uint8_t get_message_level() void menu_lcd_longpress_func(void) { backlight_wake(); - if (homing_flag || mesh_bed_leveling_flag || menu_menu == lcd_babystep_z || menu_menu == lcd_move_z) + if (homing_flag || mesh_bed_leveling_flag || menu_menu == lcd_babystep_z || menu_menu == lcd_move_z || menu_block_entering_on_serious_errors != SERIOUS_ERR_NONE) { - // disable longpress during re-entry, while homing or calibration + // disable longpress during re-entry, while homing, calibration or if a serious error lcd_quick_feedback(); return; }