mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-12-18 00:07:50 +00:00
save last extruder and set stepper directions too in case the extruder changed
fixes MarlinFirmware/Marlin#3144 and MarlinFirmware/Marlin#3083
This commit is contained in:
parent
2ef49a9d53
commit
4338813814
@ -574,8 +574,11 @@ void set_stepper_direction() {
|
||||
// block begins.
|
||||
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;
|
||||
last_extruder = current_block->active_extruder;
|
||||
set_stepper_direction();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user