ADAPTIVE_FAN_SLOWING extension to hotend thermal protection (#12853)
This commit is contained in:
committed by
Scott Lahteine
parent
459f4fef60
commit
082f6a27de
@ -866,11 +866,15 @@ void MarlinUI::draw_status_screen() {
|
||||
_draw_print_progress();
|
||||
#else
|
||||
char c;
|
||||
int per;
|
||||
uint16_t per;
|
||||
#if HAS_FAN0
|
||||
if (blink) {
|
||||
c = 'F';
|
||||
per = ((int(fan_speed[0]) + 1) * 100) / 256;
|
||||
if (blink || thermalManager.fan_speed_scaler[0] < 128) {
|
||||
uint16_t spd = thermalManager.fan_speed[0];
|
||||
if (blink) c = 'F';
|
||||
#if ENABLED(ADAPTIVE_FAN_SLOWING)
|
||||
else { c = '*'; spd = (spd * thermalManager.fan_speed_scaler[0]) >> 7; }
|
||||
#endif
|
||||
per = thermalManager.fanPercent(spd);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
@ -1049,13 +1053,13 @@ void MarlinUI::draw_status_screen() {
|
||||
#if FAN_COUNT > 0
|
||||
if (0
|
||||
#if HAS_FAN0
|
||||
|| fan_speed[0]
|
||||
|| thermalManager.fan_speed[0]
|
||||
#endif
|
||||
#if HAS_FAN1
|
||||
|| fan_speed[1]
|
||||
|| thermalManager.fan_speed[1]
|
||||
#endif
|
||||
#if HAS_FAN2
|
||||
|| fan_speed[2]
|
||||
|| thermalManager.fan_speed[2]
|
||||
#endif
|
||||
) leds |= LED_C;
|
||||
#endif // FAN_COUNT > 0
|
||||
|
Reference in New Issue
Block a user