소스 검색

Code style tweak to gcode.h

Scott Lahteine 8 년 전
부모
커밋
33279a1e02
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      Marlin/gcode.h

+ 1
- 1
Marlin/gcode.h 파일 보기

@@ -133,7 +133,7 @@ public:
133 133
     // Code is found in the string. If not found, value_ptr is unchanged.
134 134
     // This allows "if (seen('A')||seen('B'))" to use the last-found value.
135 135
     static bool seen(const char c) {
136
-      char *p = strchr(command_args, c);
136
+      const char *p = strchr(command_args, c);
137 137
       const bool b = !!p;
138 138
       if (b) value_ptr = DECIMAL_SIGNED(p[1]) ? &p[1] : NULL;
139 139
       return b;

Loading…
취소
저장