Browse Source

Fix kill screen with null string (#15747)

ManuelMcLure 5 years ago
parent
commit
76b861d759
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/Marlin.cpp

+ 1
- 1
Marlin/src/Marlin.cpp View File

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

Loading…
Cancel
Save