mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 22:08:02 +00:00
< like in the oher compareble loops
to avoid: Marlin_main.cpp:1790: warning: array subscript is above array bounds.
This commit is contained in:
parent
9e8427f253
commit
ebe5b87c2c
@ -1787,7 +1787,7 @@ inline void gcode_G28() {
|
|||||||
|
|
||||||
enable_endstops(true);
|
enable_endstops(true);
|
||||||
|
|
||||||
for (int i = X_AXIS; i <= NUM_AXIS; i++) destination[i] = current_position[i];
|
for (int i = X_AXIS; i < NUM_AXIS; i++) destination[i] = current_position[i];
|
||||||
|
|
||||||
feedrate = 0.0;
|
feedrate = 0.0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user