Skip to content
Snippets Groups Projects
Commit e7e18665 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Merge pull request #3161 from Alex9779/fix_InitialExtruderDirection

Fix initial extruder direction for second/third/fourth extruder if they run inverted to the first
parents 57e82cac 43388138
Branches
Tags
No related merge requests found
...@@ -574,8 +574,11 @@ void set_stepper_direction() { ...@@ -574,8 +574,11 @@ void set_stepper_direction() {
// block begins. // block begins.
FORCE_INLINE void trapezoid_generator_reset() { FORCE_INLINE void trapezoid_generator_reset() {
if (current_block->direction_bits != out_bits) { static int8_t last_extruder = -1;
if (current_block->direction_bits != out_bits || current_block->active_extruder != last_extruder) {
out_bits = current_block->direction_bits; out_bits = current_block->direction_bits;
last_extruder = current_block->active_extruder;
set_stepper_direction(); set_stepper_direction();
} }
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment