Scott Lahteine 6 years ago
parent
commit
59a699063a
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      Marlin/ultralcd.cpp

+ 4
- 3
Marlin/ultralcd.cpp View File

@@ -4607,10 +4607,11 @@ void lcd_update() {
4607 4607
 
4608 4608
     lcd_buttons_update();
4609 4609
 
4610
-    #if ENABLED(AUTO_BED_LEVELING_UBL) || ENABLED(G26_MESH_VALIDATION)
4611
-      const bool UBL_CONDITION = lcd_external_control;
4610
+    #if ENABLED(AUTO_BED_LEVELING_UBL)
4611
+      // Don't run the debouncer if UBL owns the display
4612
+      #define UBL_CONDITION !lcd_external_control
4612 4613
     #else
4613
-      constexpr bool UBL_CONDITION = true;
4614
+      #define UBL_CONDITION true
4614 4615
     #endif
4615 4616
 
4616 4617
     // If the action button is pressed...

Loading…
Cancel
Save