Browse Source

Have G28 do a refresh of the display

Scott Lahteine 7 years ago
parent
commit
b2d3c8aedd
2 changed files with 6 additions and 0 deletions
  1. 2
    0
      Marlin/Marlin_main.cpp
  2. 4
    0
      Marlin/ultralcd.h

+ 2
- 0
Marlin/Marlin_main.cpp View File

3798
     tool_change(old_tool_index, 0, true);
3798
     tool_change(old_tool_index, 0, true);
3799
   #endif
3799
   #endif
3800
 
3800
 
3801
+  lcd_refresh();
3802
+
3801
   report_current_position();
3803
   report_current_position();
3802
 
3804
 
3803
   #if ENABLED(DEBUG_LEVELING_FEATURE)
3805
   #if ENABLED(DEBUG_LEVELING_FEATURE)

+ 4
- 0
Marlin/ultralcd.h View File

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

Loading…
Cancel
Save