Common method for scaled fan speed
This commit is contained in:
@ -1184,7 +1184,7 @@ void Planner::check_axes_activity() {
|
||||
if (has_blocks_queued()) {
|
||||
#if FAN_COUNT > 0
|
||||
FANS_LOOP(i)
|
||||
tail_fan_speed[i] = (block_buffer[block_buffer_tail].fan_speed[i] * uint16_t(thermalManager.fan_speed_scaler[i])) >> 7;
|
||||
tail_fan_speed[i] = thermalManager.scaledFanSpeed(i, block_buffer[block_buffer_tail].fan_speed[i]);
|
||||
#endif
|
||||
|
||||
block_t* block;
|
||||
@ -1207,7 +1207,7 @@ void Planner::check_axes_activity() {
|
||||
else {
|
||||
#if FAN_COUNT > 0
|
||||
FANS_LOOP(i)
|
||||
tail_fan_speed[i] = (thermalManager.fan_speed[i] * uint16_t(thermalManager.fan_speed_scaler[i])) >> 7;
|
||||
tail_fan_speed[i] = thermalManager.scaledFanSpeed(i);
|
||||
#endif
|
||||
|
||||
#if ENABLED(BARICUDA)
|
||||
|
Reference in New Issue
Block a user