Browse Source

Fix search for white space in enqueued commands

Roxy-3D 6 years ago
parent
commit
d5379ee9d6
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/gcode/queue.cpp

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

@@ -143,7 +143,7 @@ bool enqueue_and_echo_command(const char* cmd) {
143 143
   //SERIAL_ECHO(cmd);
144 144
   //SERIAL_ECHO("\") \n");
145 145
 
146
-  if (*cmd == 0 || *cmd == '\n' || *cmd == 'r') {
146
+  if (*cmd == 0 || *cmd == '\n' || *cmd == '\r') {
147 147
     //SERIAL_ECHO("Null command found...   Did not queue!\n");
148 148
     return true;
149 149
   }

Loading…
Cancel
Save