Browse Source

Marlin: Use strcmp_P

vanilla_fb_2.0.x
Scott Lahteine 5 years ago
parent
commit
0578bbbf5d
  1. 6
      Marlin/src/gcode/queue.cpp

6
Marlin/src/gcode/queue.cpp

@ -523,12 +523,12 @@ void GCodeQueue::get_serial_commands() {
#if DISABLED(EMERGENCY_PARSER) #if DISABLED(EMERGENCY_PARSER)
// Process critical commands early // Process critical commands early
if (strcmp(command, "M108") == 0) { if (strcmp_P(command, PSTR("M108")) == 0) {
wait_for_heatup = false; wait_for_heatup = false;
TERN_(HAS_LCD_MENU, wait_for_user = false); TERN_(HAS_LCD_MENU, wait_for_user = false);
} }
if (strcmp(command, "M112") == 0) kill(M112_KILL_STR, nullptr, true); if (strcmp_P(command, PSTR("M112")) == 0) kill(M112_KILL_STR, nullptr, true);
if (strcmp(command, "M410") == 0) quickstop_stepper(); if (strcmp_P(command, PSTR("M410")) == 0) quickstop_stepper();
#endif #endif
#if defined(NO_TIMEOUTS) && NO_TIMEOUTS > 0 #if defined(NO_TIMEOUTS) && NO_TIMEOUTS > 0

Loading…
Cancel
Save