Add M107 into PROGMEM

Change in memory:
Flash: -4 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-03-18 17:05:35 +00:00
parent 5ade1716bf
commit 00515a975d
3 changed files with 4 additions and 3 deletions

View File

@ -41,7 +41,7 @@ void lay1cal_wait_preheat()
{
const char * const preheat_cmd[] =
{
PSTR("M107"),
MSG_M107,
PSTR("M190"),
PSTR("M109"),
PSTR("G28"),
@ -247,7 +247,6 @@ void lay1cal_square(uint8_t step, float layer_height, float extrusion_width)
void lay1cal_finish(bool mmu_enabled)
{
static const char cmd_cal_finish_0[] PROGMEM = "M107"; //turn off printer fan
static const char cmd_cal_finish_1[] PROGMEM = "G1 E-0.075 F2100"; //retract
static const char cmd_cal_finish_2[] PROGMEM = "M104 S0"; // turn off temperature
static const char cmd_cal_finish_3[] PROGMEM = "M140 S0"; // turn off heatbed
@ -256,7 +255,7 @@ void lay1cal_finish(bool mmu_enabled)
static const char * const cmd_cal_finish[] PROGMEM =
{
cmd_cal_finish_0,
MSG_M107, // turn off printer fan
cmd_cal_finish_1,
cmd_cal_finish_2,
cmd_cal_finish_3,

View File

@ -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_M107[] PROGMEM_N1 = "M107";
const char MSG_M500[] PROGMEM_N1 = "M500";
const char MSG_M600[] PROGMEM_N1 = "M600";
const char MSG_M701_NO_LIFT[] PROGMEM_N1 = "M701 Z0";

View File

@ -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_M107[];
extern const char MSG_M500[];
extern const char MSG_M600[];
extern const char MSG_M701_NO_LIFT[];