Browse Source

Merge pull request #2219 from MagoKimbra/Cura_bug

Fix problem Width Cura
AnHardt 10 years ago
parent
commit
ca2dcff9d4
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp View File

@@ -5170,7 +5170,7 @@ void process_next_command() {
5170 5170
   //  - Overwrite * with nul to mark the end
5171 5171
   while (*current_command == ' ') ++current_command;
5172 5172
   if (*current_command == 'N' && current_command[1] >= '0' && current_command[1] <= '9') {
5173
-    while (*current_command != ' ') ++current_command;
5173
+    while (*current_command != ' ' && *current_command != 'G' && *current_command != 'M' && *current_command != 'T') ++current_command;
5174 5174
     while (*current_command == ' ') ++current_command;
5175 5175
   }
5176 5176
   char *starpos = strchr(current_command, '*');  // * should always be the last parameter

Loading…
Cancel
Save