Use sprintf_P in first layer calibration. Save 30B of FLASH memory.

This commit is contained in:
Marek Bel 2019-06-11 20:00:49 +02:00
parent 47a183e96e
commit 60cc3d58ec

View file

@ -1414,9 +1414,7 @@ void lcd_commands()
break;
case 7:
lay1cal_meander();
strcpy(cmd1, "G1 X50 Y35 E");
strcat(cmd1, ftostr43(extr));
sprintf_P(cmd1, PSTR("G1 X50 Y35 E%-.3f"), extr);
enquecommand(cmd1);
lcd_commands_step = 6;