Add M23 %s into PROGMEM
Change in memory: Flash: -14 bytes SRAM: 0 bytes
This commit is contained in:
parent
7c0ead7bc2
commit
129cc18cbf
|
|
@ -10915,7 +10915,7 @@ void restore_print_from_eeprom(bool mbl_was_active) {
|
|||
|
||||
MYSERIAL.print(filename);
|
||||
strcat_P(filename, PSTR(".gco"));
|
||||
sprintf_P(cmd, PSTR("M23 %s"), filename);
|
||||
sprintf_P(cmd, MSG_M23, filename);
|
||||
enquecommand(cmd);
|
||||
uint32_t position = eeprom_read_dword((uint32_t*)(EEPROM_FILE_POSITION));
|
||||
SERIAL_ECHOPGM("Position read from eeprom:");
|
||||
|
|
|
|||
|
|
@ -651,7 +651,7 @@ void CardReader::checkautostart(bool force)
|
|||
{
|
||||
char cmd[30];
|
||||
// M23: Select SD file
|
||||
sprintf_P(cmd, PSTR("M23 %s"), autoname);
|
||||
sprintf_P(cmd, MSG_M23, autoname);
|
||||
enquecommand(cmd);
|
||||
// M24: Start/resume SD print
|
||||
enquecommand_P(MSG_M24);
|
||||
|
|
|
|||
|
|
@ -232,6 +232,7 @@ 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_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";
|
||||
|
|
|
|||
|
|
@ -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_M23[];
|
||||
extern const char MSG_M24[];
|
||||
extern const char MSG_M83[];
|
||||
extern const char MSG_M84[];
|
||||
|
|
|
|||
|
|
@ -7269,7 +7269,7 @@ static void menu_action_sdfile(const char* filename)
|
|||
char cmd[30];
|
||||
char* c;
|
||||
bool result = true;
|
||||
sprintf_P(cmd, PSTR("M23 %s"), filename);
|
||||
sprintf_P(cmd, MSG_M23, filename);
|
||||
for (c = &cmd[4]; *c; c++)
|
||||
*c = tolower(*c);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue