Add preheat_cmd into PROGMEM

Change in memory:
Flash: -30 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-03-18 18:39:29 +00:00 committed by DRracer
parent 5ef00fb78a
commit 7ad137e570
1 changed files with 8 additions and 4 deletions

View File

@ -47,12 +47,16 @@ static const char zero_extrusion[] PROGMEM = "G92 E0";
//! @brief Wait for preheat
void lay1cal_wait_preheat()
{
const char * const preheat_cmd[] =
static const char preheat_cmd_2[] PROGMEM = "M190";
static const char preheat_cmd_3[] PROGMEM = "M109";
static const char preheat_cmd_4[] PROGMEM = "G28";
static const char * const preheat_cmd[] PROGMEM =
{
MSG_M107,
PSTR("M190"),
PSTR("M109"),
PSTR("G28"),
preheat_cmd_2,
preheat_cmd_3,
preheat_cmd_4,
zero_extrusion
};