Add a ZERO macro to clear arrays

This commit is contained in:
Scott Lahteine
2016-10-22 10:07:18 -05:00
parent 627f9d5285
commit 5f5a55a0de
6 changed files with 8 additions and 7 deletions

View File

@@ -3145,7 +3145,7 @@ inline void gcode_G4() {
if (DEBUGGING(LEVELING)) DEBUG_POS(">>> home_delta", current_position);
#endif
// Init the current position of all carriages to 0,0,0
memset(current_position, 0, sizeof(current_position));
ZERO(current_position);
sync_plan_position();
// Move all carriages together linearly until an endstop is hit.