Browse Source

Merge pull request #3027 from CONSULitAS/RCBugFix_current_command

Fix: current_command_args contains command
Scott Lahteine 9 years ago
parent
commit
8006684c19
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp View File

@@ -5714,7 +5714,7 @@ void process_next_command() {
5714 5714
 
5715 5715
   // Args pointer optimizes code_seen, especially those taking XYZEF
5716 5716
   // This wastes a little cpu on commands that expect no arguments.
5717
-  current_command_args = current_command;
5717
+  current_command_args = current_command+2; // skip two chars for command code and first digit
5718 5718
   while (*current_command_args >= '0' && *current_command_args <= '9') ++current_command_args;
5719 5719
   while (*current_command_args == ' ') ++current_command_args;
5720 5720
 

Loading…
Cancel
Save