Merge pull request #6557 from thinkyhead/rc_hotend_status_item

Keep refreshing LCD if hotend status is on-screen
This commit is contained in:
Scott Lahteine 2017-05-02 22:04:21 -05:00 committed by GitHub
commit f4239e62b1

View file

@ -2880,14 +2880,14 @@ void kill_screen(const char* lcd_msg) {
// Portions from STATIC_ITEM... // Portions from STATIC_ITEM...
#define HOTEND_STATUS_ITEM() do { \ #define HOTEND_STATUS_ITEM() do { \
if (_menuLineNr == _thisItemNr) { \ if (_menuLineNr == _thisItemNr) { \
if (lcdDrawUpdate) \ if (lcdDrawUpdate) { \
lcd_implementation_drawmenu_static(_lcdLineNr, PSTR(MSG_FILAMENT_CHANGE_NOZZLE), false, true); \ lcd_implementation_drawmenu_static(_lcdLineNr, PSTR(MSG_FILAMENT_CHANGE_NOZZLE), false, true); \
lcd_implementation_hotend_status(_lcdLineNr); \ lcd_implementation_hotend_status(_lcdLineNr); \
} \
if (_skipStatic && encoderLine <= _thisItemNr) { \ if (_skipStatic && encoderLine <= _thisItemNr) { \
encoderPosition += ENCODER_STEPS_PER_MENU_ITEM; \ encoderPosition += ENCODER_STEPS_PER_MENU_ITEM; \
++encoderLine; \ ++encoderLine; \
} \ } \
else \
lcdDrawUpdate = LCDVIEW_KEEP_REDRAWING; \ lcdDrawUpdate = LCDVIEW_KEEP_REDRAWING; \
} \ } \
++_thisItemNr; \ ++_thisItemNr; \