소스 검색

Merge pull request #3027 from CONSULitAS/RCBugFix_current_command

Fix: current_command_args contains command
Scott Lahteine 9 년 전
부모
커밋
8006684c19
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp 파일 보기

@@ -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…
취소
저장