Quellcode durchsuchen

Allow no-space after initial command

Addresses issue #2715
Scott Lahteine vor 9 Jahren
Ursprung
Commit
cdcb80f3c5
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp Datei anzeigen

5716
   // Args pointer optimizes code_seen, especially those taking XYZEF
5716
   // Args pointer optimizes code_seen, especially those taking XYZEF
5717
   // This wastes a little cpu on commands that expect no arguments.
5717
   // This wastes a little cpu on commands that expect no arguments.
5718
   current_command_args = current_command;
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
   while (*current_command_args == ' ') ++current_command_args;
5720
   while (*current_command_args == ' ') ++current_command_args;
5721
 
5721
 
5722
   // Interpret the code int
5722
   // Interpret the code int

Laden…
Abbrechen
Speichern