Pārlūkot izejas kodu

Have G28 do a refresh of the display

Scott Lahteine 7 gadus atpakaļ
vecāks
revīzija
b2d3c8aedd
2 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 2
    0
      Marlin/Marlin_main.cpp
  2. 4
    0
      Marlin/ultralcd.h

+ 2
- 0
Marlin/Marlin_main.cpp Parādīt failu

@@ -3798,6 +3798,8 @@ inline void gcode_G28(const bool always_home_all) {
3798 3798
     tool_change(old_tool_index, 0, true);
3799 3799
   #endif
3800 3800
 
3801
+  lcd_refresh();
3802
+
3801 3803
   report_current_position();
3802 3804
 
3803 3805
   #if ENABLED(DEBUG_LEVELING_FEATURE)

+ 4
- 0
Marlin/ultralcd.h Parādīt failu

@@ -46,6 +46,9 @@
46 46
   void kill_screen(const char* lcd_msg);
47 47
   bool lcd_detected(void);
48 48
 
49
+  extern uint8_t lcdDrawUpdate;
50
+  inline void lcd_refresh() { lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW; }
51
+
49 52
   #if HAS_BUZZER
50 53
     void lcd_buzz(long duration, uint16_t freq);
51 54
   #endif
@@ -158,6 +161,7 @@
158 161
   inline void lcd_buttons_update() {}
159 162
   inline void lcd_reset_alert_level() {}
160 163
   inline bool lcd_detected() { return true; }
164
+  inline void lcd_refresh() {}
161 165
 
162 166
   #define LCD_MESSAGEPGM(x) NOOP
163 167
   #define LCD_ALERTMESSAGEPGM(x) NOOP

Notiek ielāde…
Atcelt
Saglabāt