Implement MIXING_EXTRUDER and SWITCHING_EXTRUDER

This commit is contained in:
Scott Lahteine committed 2016-07-17 10:53:10 -07:00
1 parent 22b4cff423
commit 05da02f0a2
13 files changed
+788 -378

No files matched your search

+6
View File
@@ -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