Add M24 into PROGMEM

Change in memory:
Flash: -8 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-03-18 16:15:10 +00:00
parent 5f8fc64a32
commit 7c0ead7bc2
5 changed files with 5 additions and 3 deletions

View File

@ -4182,7 +4182,7 @@ void process_commands()
}
else if (code_seen_P(PSTR("uvlo"))) { // PRUSA uvlo
eeprom_update_byte((uint8_t*)EEPROM_UVLO,0);
enquecommand_P(PSTR("M24"));
enquecommand_P(MSG_M24);
}
else if (code_seen_P(PSTR("MMURES"))) // PRUSA MMURES
{

View File

@ -654,7 +654,7 @@ void CardReader::checkautostart(bool force)
sprintf_P(cmd, PSTR("M23 %s"), autoname);
enquecommand(cmd);
// M24: Start/resume SD print
enquecommand_P(PSTR("M24"));
enquecommand_P(MSG_M24);
found=true;
}
}

View File

@ -232,5 +232,6 @@ const char MSG_UNKNOWN_CODE[] PROGMEM_N1 = "Unknown %c code: %s\n";
// Common G-gcodes
const char MSG_M701_NO_LIFT[] PROGMEM_N1 = "M701 Z0";
const char MSG_M702_NO_LIFT[] PROGMEM_N1 = "M702 Z0";
const char MSG_M24[] PROGMEM_N1 = "M24";
const char MSG_M83[] PROGMEM_N1 = "M83";
const char MSG_M84[] PROGMEM_N1 = "M84";

View File

@ -238,6 +238,7 @@ extern const char MSG_UNKNOWN_CODE[];
// Common G-gcodes
extern const char MSG_M701_NO_LIFT[];
extern const char MSG_M702_NO_LIFT[];
extern const char MSG_M24[];
extern const char MSG_M83[];
extern const char MSG_M84[];

View File

@ -7304,7 +7304,7 @@ static void menu_action_sdfile(const char* filename)
}
if (result) {
enquecommand(cmd);
enquecommand_P(PSTR("M24"));
enquecommand_P(MSG_M24);
}
lcd_return_to_status();