浏览代码

Allow no-space after initial command

Addresses issue #2715
Scott Lahteine 9 年前
父节点
当前提交
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

正在加载...
取消
保存