Fix kill screen with null string (#15747)

This commit is contained in:
ManuelMcLure 2019-11-02 05:13:42 -07:00 committed by Scott Lahteine
parent 7360e9343a
commit 76b861d759

View File

@ -745,7 +745,7 @@ void kill(PGM_P const lcd_error/*=nullptr*/, PGM_P const lcd_component/*=nullptr
SERIAL_ERROR_MSG(MSG_ERR_KILLED); SERIAL_ERROR_MSG(MSG_ERR_KILLED);
#if HAS_DISPLAY #if HAS_DISPLAY
ui.kill_screen(lcd_error ?: GET_TEXT(MSG_KILLED), lcd_component); ui.kill_screen(lcd_error ?: GET_TEXT(MSG_KILLED), lcd_component ?: PSTR(""));
#else #else
UNUSED(lcd_error); UNUSED(lcd_error);
UNUSED(lcd_component); UNUSED(lcd_component);