From 5fe15c7f10dbfdc8f3d6cb34fb3f4c1e508fcab0 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 7 Nov 2017 17:35:32 -0600 Subject: [PATCH] Patch abuse of sprintf_P in G33 --- Marlin/Marlin_main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 54ced3b5c..9e270202b 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -6063,7 +6063,7 @@ void home_all_axes() { gcode_G28(true); } } SERIAL_EOL(); char mess[21]; - sprintf_P(mess, PSTR("Calibration sd:")); + strcpy_P(mess, PSTR("Calibration sd:")); if (zero_std_dev_min < 1) sprintf_P(&mess[15], PSTR("0.%03i"), (int)round(zero_std_dev_min * 1000.0)); else @@ -6078,7 +6078,7 @@ void home_all_axes() { gcode_G28(true); } if (iterations < 31) sprintf_P(mess, PSTR("Iteration : %02i"), (int)iterations); else - sprintf_P(mess, PSTR("No convergence")); + strcpy_P(mess, PSTR("No convergence")); SERIAL_PROTOCOL(mess); SERIAL_PROTOCOL_SP(32); SERIAL_PROTOCOLPGM("std dev:"); @@ -6097,8 +6097,8 @@ void home_all_axes() { gcode_G28(true); } SERIAL_EOL(); char mess[21]; - sprintf_P(mess, enddryrun); - sprintf_P(&mess[11], PSTR(" sd:")); + strcpy_P(mess, enddryrun); + strcpy_P(&mess[11], PSTR(" sd:")); if (zero_std_dev < 1) sprintf_P(&mess[15], PSTR("0.%03i"), (int)round(zero_std_dev * 1000.0)); else