Parcourir la source

Fix kill screen with null string (#15747)

ManuelMcLure il y a 5 ans
Parent
révision
76b861d759
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      Marlin/src/Marlin.cpp

+ 1
- 1
Marlin/src/Marlin.cpp Voir le fichier

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

Chargement…
Annuler
Enregistrer