1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-12-18 00:07:50 +00:00

A little extra gcode_T spacing

This commit is contained in:
Scott Lahteine 2016-04-27 19:35:55 -07:00
parent 96f51f400f
commit 462a8a951e

View File

@ -6374,20 +6374,27 @@ inline void gcode_T(uint8_t tmp_extruder) {
#endif #endif
#else // !AUTO_BED_LEVELING_FEATURE #else // !AUTO_BED_LEVELING_FEATURE
// Offset extruder (only by XY) // Offset extruder (only by XY)
for (int i=X_AXIS; i<=Y_AXIS; i++) for (int i=X_AXIS; i<=Y_AXIS; i++)
current_position[i] += extruder_offset[i][tmp_extruder] - extruder_offset[i][active_extruder]; current_position[i] += extruder_offset[i][tmp_extruder] - extruder_offset[i][active_extruder];
#endif // !AUTO_BED_LEVELING_FEATURE #endif // !AUTO_BED_LEVELING_FEATURE
// Set the new active extruder and position // Set the new active extruder and position
active_extruder = tmp_extruder; active_extruder = tmp_extruder;
#endif // !DUAL_X_CARRIAGE #endif // !DUAL_X_CARRIAGE
#if ENABLED(DELTA) #if ENABLED(DELTA)
sync_plan_position_delta(); sync_plan_position_delta();
#else #else
sync_plan_position(); sync_plan_position();
#endif #endif
// Move to the old position // Move to the old position
if (IsRunning()) prepare_move(); if (IsRunning()) prepare_move();
} // (tmp_extruder != active_extruder) } // (tmp_extruder != active_extruder)
#if ENABLED(EXT_SOLENOID) #if ENABLED(EXT_SOLENOID)