Browse Source

[2.0.x] UBL Mesh Storage Message (#9095)

Tannoo 7 years ago
parent
commit
f26805e862
1 changed files with 6 additions and 4 deletions
  1. 6
    4
      Marlin/src/lcd/ultralcd.cpp

+ 6
- 4
Marlin/src/lcd/ultralcd.cpp View File

@@ -2279,20 +2279,22 @@ void kill_screen(const char* lcd_msg) {
2279 2279
      * UBL Load Mesh Command
2280 2280
      */
2281 2281
     void _lcd_ubl_load_mesh_cmd() {
2282
-      char UBL_LCD_GCODE[10];
2282
+      char UBL_LCD_GCODE[25];
2283 2283
       sprintf_P(UBL_LCD_GCODE, PSTR("G29 L%i"), ubl_storage_slot);
2284 2284
       lcd_enqueue_command(UBL_LCD_GCODE);
2285
-      enqueue_and_echo_commands_P(PSTR("M117 " MSG_MESH_LOADED "."));
2285
+      sprintf_P(UBL_LCD_GCODE, PSTR("M117 " MSG_MESH_LOADED), ubl_storage_slot);
2286
+      lcd_enqueue_command(UBL_LCD_GCODE);
2286 2287
     }
2287 2288
 
2288 2289
     /**
2289 2290
      * UBL Save Mesh Command
2290 2291
      */
2291 2292
     void _lcd_ubl_save_mesh_cmd() {
2292
-      char UBL_LCD_GCODE[10];
2293
+      char UBL_LCD_GCODE[25];
2293 2294
       sprintf_P(UBL_LCD_GCODE, PSTR("G29 S%i"), ubl_storage_slot);
2294 2295
       lcd_enqueue_command(UBL_LCD_GCODE);
2295
-      enqueue_and_echo_commands_P(PSTR("M117 " MSG_MESH_SAVED "."));
2296
+      sprintf_P(UBL_LCD_GCODE, PSTR("M117 " MSG_MESH_SAVED), ubl_storage_slot);
2297
+      lcd_enqueue_command(UBL_LCD_GCODE);
2296 2298
     }
2297 2299
 
2298 2300
     /**

Loading…
Cancel
Save