Просмотр исходного кода

Allow no-space after initial command

Addresses issue #2715
Scott Lahteine 9 лет назад
Родитель
Сommit
cdcb80f3c5
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp Просмотреть файл

@@ -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

Загрузка…
Отмена
Сохранить