Browse Source

Marlin: Use strcmp_P

Scott Lahteine 5 years ago
parent
commit
0578bbbf5d
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/gcode/queue.cpp

+ 3
- 3
Marlin/src/gcode/queue.cpp View File

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

Loading…
Cancel
Save