Tweak to check_axes_activity
This commit is contained in:
parent
417a82fd95
commit
ea87cd975d
@ -410,17 +410,13 @@ void Planner::check_axes_activity() {
|
|||||||
|
|
||||||
#if ENABLED(BARICUDA)
|
#if ENABLED(BARICUDA)
|
||||||
#if HAS_HEATER_1
|
#if HAS_HEATER_1
|
||||||
uint8_t tail_valve_pressure = baricuda_valve_pressure;
|
uint8_t tail_valve_pressure;
|
||||||
#endif
|
#endif
|
||||||
#if HAS_HEATER_2
|
#if HAS_HEATER_2
|
||||||
uint8_t tail_e_to_p_pressure = baricuda_e_to_p_pressure;
|
uint8_t tail_e_to_p_pressure;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if FAN_COUNT > 0
|
|
||||||
for (uint8_t i = 0; i < FAN_COUNT; i++) tail_fan_speed[i] = fanSpeeds[i];
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (blocks_queued()) {
|
if (blocks_queued()) {
|
||||||
|
|
||||||
#if FAN_COUNT > 0
|
#if FAN_COUNT > 0
|
||||||
@ -445,6 +441,20 @@ void Planner::check_axes_activity() {
|
|||||||
LOOP_XYZE(i) if (block->steps[i]) axis_active[i]++;
|
LOOP_XYZE(i) if (block->steps[i]) axis_active[i]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
#if FAN_COUNT > 0
|
||||||
|
for (uint8_t i = 0; i < FAN_COUNT; i++) tail_fan_speed[i] = fanSpeeds[i];
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if ENABLED(BARICUDA)
|
||||||
|
#if HAS_HEATER_1
|
||||||
|
tail_valve_pressure = baricuda_valve_pressure;
|
||||||
|
#endif
|
||||||
|
#if HAS_HEATER_2
|
||||||
|
tail_e_to_p_pressure = baricuda_e_to_p_pressure;
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
#if ENABLED(DISABLE_X)
|
#if ENABLED(DISABLE_X)
|
||||||
if (!axis_active[X_AXIS]) disable_X();
|
if (!axis_active[X_AXIS]) disable_X();
|
||||||
|
Loading…
Reference in New Issue
Block a user