Add M500 into PROGMEM
Change in memory: Flash: -6 bytes SRAM: 0 bytes
This commit is contained in:
parent
733bc874fb
commit
5ade1716bf
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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[];
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue