Browse Source

Fix kill screen with null string (#15747)

pull/1/head
ManuelMcLure 5 years ago
committed by Scott Lahteine
parent
commit
76b861d759
  1. 2
      Marlin/src/Marlin.cpp

2
Marlin/src/Marlin.cpp

@ -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