瀏覽代碼

< like in the oher compareble loops

to avoid:
Marlin_main.cpp:1790: warning: array subscript is above array bounds.
AnHardt 10 年之前
父節點
當前提交
ebe5b87c2c
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/Marlin_main.cpp

+ 1
- 1
Marlin/Marlin_main.cpp 查看文件

@@ -1787,7 +1787,7 @@ inline void gcode_G28() {
1787 1787
 
1788 1788
   enable_endstops(true);
1789 1789
 
1790
-  for (int i = X_AXIS; i <= NUM_AXIS; i++) destination[i] = current_position[i];
1790
+  for (int i = X_AXIS; i < NUM_AXIS; i++) destination[i] = current_position[i];
1791 1791
 
1792 1792
   feedrate = 0.0;
1793 1793
 

Loading…
取消
儲存