Fix kill screen with null string (#15747)

2.0.x
ManuelMcLure 5 years ago committed by Scott Lahteine
parent 7360e9343a
commit 76b861d759

@ -745,7 +745,7 @@ void kill(PGM_P const lcd_error/*=nullptr*/, PGM_P const lcd_component/*=nullptr
SERIAL_ERROR_MSG(MSG_ERR_KILLED);
#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
UNUSED(lcd_error);
UNUSED(lcd_component);

Loading…
Cancel
Save