瀏覽代碼

Merge pull request #6914 from Bob-the-Kuhn/Gcode.h-bug-fix

gcode.h - fix compile error
Bob-the-Kuhn 8 年之前
父節點
當前提交
7ed0761e09
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/gcode.h

+ 1
- 1
Marlin/gcode.h 查看文件

135
     static bool seen(const char c) {
135
     static bool seen(const char c) {
136
       const char *p = strchr(command_args, c);
136
       const char *p = strchr(command_args, c);
137
       const bool b = !!p;
137
       const bool b = !!p;
138
-      if (b) value_ptr = DECIMAL_SIGNED(p[1]) ? &p[1] : NULL;
138
+      if (b) value_ptr = (char*) (DECIMAL_SIGNED(p[1]) ? &p[1] : NULL);
139
       return b;
139
       return b;
140
     }
140
     }
141
 
141
 

Loading…
取消
儲存