Tweaks for check_axes_activity
This commit is contained in:
parent
7f88334aa3
commit
1f2acc33bc
|
@ -423,17 +423,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
|
||||||
|
@ -458,6 +454,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 a new issue