Bläddra i källkod

drop conv2str dependency in Marlin_main

Guðni Már Gilbert 1 år sedan
förälder
incheckning
72857c902c
1 ändrade filer med 1 tillägg och 3 borttagningar
  1. 1 3
      Firmware/Marlin_main.cpp

+ 1 - 3
Firmware/Marlin_main.cpp

@@ -66,7 +66,6 @@
 
 #include "menu.h"
 #include "ultralcd.h"
-#include "conv2str.h"
 #include "backlight.h"
 
 #include "planner.h"
@@ -11043,8 +11042,7 @@ void restore_print_from_eeprom(bool mbl_was_active) {
 	sprintf_P(cmd, PSTR("M220 S%d"), feedmultiply_rec);
 	enquecommand(cmd);
   // Set the fan speed saved at the power panic.
-	strcpy_P(cmd, PSTR("M106 S"));
-	strcat(cmd, itostr3(int(fan_speed_rec)));
+	sprintf_P(cmd, PSTR("M106 S%u"), fan_speed_rec);
 	enquecommand(cmd);
 
   // Set a position in the file.