Browse Source

Allow no-space after initial command

Addresses issue #2715
Scott Lahteine 9 years ago
parent
commit
cdcb80f3c5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp View File

@@ -5716,7 +5716,7 @@ void process_next_command() {
5716 5716
   // Args pointer optimizes code_seen, especially those taking XYZEF
5717 5717
   // This wastes a little cpu on commands that expect no arguments.
5718 5718
   current_command_args = current_command;
5719
-  while (*current_command_args && *current_command_args != ' ') ++current_command_args;
5719
+  while (*current_command_args >= '0' && *current_command_args <= '9') ++current_command_args;
5720 5720
   while (*current_command_args == ' ') ++current_command_args;
5721 5721
 
5722 5722
   // Interpret the code int

Loading…
Cancel
Save