diff --git a/Firmware/messages.cpp b/Firmware/messages.cpp index deeaa40f9..6a906c34b 100644 --- a/Firmware/messages.cpp +++ b/Firmware/messages.cpp @@ -235,6 +235,7 @@ const char MSG_M23[] PROGMEM_N1 = "M23 %s"; const char MSG_M24[] PROGMEM_N1 = "M24"; const char MSG_M83[] PROGMEM_N1 = "M83"; const char MSG_M84[] PROGMEM_N1 = "M84"; +const char MSG_M500[] PROGMEM_N1 = "M500"; const char MSG_M600[] PROGMEM_N1 = "M600"; const char MSG_M701_NO_LIFT[] PROGMEM_N1 = "M701 Z0"; const char MSG_M702_NO_LIFT[] PROGMEM_N1 = "M702 Z0"; diff --git a/Firmware/messages.h b/Firmware/messages.h index 906071980..ccc614a47 100644 --- a/Firmware/messages.h +++ b/Firmware/messages.h @@ -241,6 +241,7 @@ extern const char MSG_M23[]; extern const char MSG_M24[]; extern const char MSG_M83[]; extern const char MSG_M84[]; +extern const char MSG_M500[]; extern const char MSG_M600[]; extern const char MSG_M701_NO_LIFT[]; extern const char MSG_M702_NO_LIFT[]; diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index 2df85e00f..815c1a46e 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -916,7 +916,7 @@ void lcd_commands() if (_Kp != 0 || _Ki != 0 || _Kd != 0) { sprintf_P(cmd1, PSTR("M301 P%.2f I%.2f D%.2f"), _Kp, _Ki, _Kd); enquecommand(cmd1); - enquecommand_P(PSTR("M500")); + enquecommand_P(MSG_M500); } else { SERIAL_ECHOPGM("Invalid PID cal. results. Not stored to EEPROM."); @@ -950,7 +950,7 @@ void lcd_commands() case 2: if (temp_model_autotune_result()) - enquecommand_P(PSTR("M500")); + enquecommand_P(MSG_M500); lcd_commands_step = 1; break;