Skip to content

Commit

Permalink
A little extra gcode_T spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed May 1, 2016
1 parent 96f51f4 commit 462a8a9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Marlin/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6374,20 +6374,27 @@ inline void gcode_T(uint8_t tmp_extruder) {
#endif

#else // !AUTO_BED_LEVELING_FEATURE

// Offset extruder (only by XY)
for (int i=X_AXIS; i<=Y_AXIS; i++)
current_position[i] += extruder_offset[i][tmp_extruder] - extruder_offset[i][active_extruder];

#endif // !AUTO_BED_LEVELING_FEATURE

// Set the new active extruder and position
active_extruder = tmp_extruder;

#endif // !DUAL_X_CARRIAGE

#if ENABLED(DELTA)
sync_plan_position_delta();
#else
sync_plan_position();
#endif

// Move to the old position
if (IsRunning()) prepare_move();

} // (tmp_extruder != active_extruder)

#if ENABLED(EXT_SOLENOID)
Expand Down

0 comments on commit 462a8a9

Please sign in to comment.