Implement MIXING_EXTRUDER and SWITCHING_EXTRUDER
This commit is contained in:
parent
22b4cff423
commit
05da02f0a2
13 changed files with 788 additions and 378 deletions
|
|
@ -629,6 +629,12 @@ void Planner::check_axes_activity() {
|
|||
// Bail if this is a zero-length block
|
||||
if (block->step_event_count <= dropsegments) return;
|
||||
|
||||
// For a mixing extruder, get a magnified step_event_count for each
|
||||
#if ENABLED(MIXING_EXTRUDER)
|
||||
for (uint8_t i = 0; i < MIXING_STEPPERS; i++)
|
||||
block->mix_event_count[i] = (mixing_factor[i] < 0.0001) ? 0 : block->step_event_count / mixing_factor[i];
|
||||
#endif
|
||||
|
||||
#if FAN_COUNT > 0
|
||||
for (uint8_t i = 0; i < FAN_COUNT; i++) block->fan_speed[i] = fanSpeeds[i];
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue