Browse Source

Fix ANYCUBIC_LCD_I3MEGA compile (#21585)

vanilla_fb_2.0.x
Veisen 4 years ago
committed by Scott Lahteine
parent
commit
21518fbd4e
  1. 3
      Marlin/src/lcd/extui/lib/anycubic_i3mega/anycubic_i3mega_lcd.cpp

3
Marlin/src/lcd/extui/lib/anycubic_i3mega/anycubic_i3mega_lcd.cpp

@ -583,8 +583,7 @@ void AnycubicTFTClass::GetCommandFromTFT() {
} break; } break;
case 4: { // A4 GET FAN SPEED case 4: { // A4 GET FAN SPEED
const float fanPercent = getActualFan_percent(FAN0); SEND_PGM_VAL("A4V ", int(getActualFan_percent(FAN0)));
SEND_PGM_VAL("A4V ", int(LIMIT(fanPercent, 0, 100)));
} break; } break;
case 5: { // A5 GET CURRENT COORDINATE case 5: { // A5 GET CURRENT COORDINATE

Loading…
Cancel
Save