From b9f9f8f7d39cedfe30e64ed9d15af154e2e83bf6 Mon Sep 17 00:00:00 2001 From: Blair Thompson Date: Mon, 20 Aug 2012 21:49:37 +0100 Subject: [PATCH] The pre-heat ABS and PLA options in the LCD Menu were broken a while back. The pre-heat worked fine, but the cooling fans were not switching on as intended. This is now fixed. --- Marlin/ultralcd.pde | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Marlin/ultralcd.pde b/Marlin/ultralcd.pde index 9be357cb9..98d9f4bc8 100644 --- a/Marlin/ultralcd.pde +++ b/Marlin/ultralcd.pde @@ -530,14 +530,16 @@ void MainMenu::showPrepare() case ItemP_preheat_pla: MENUITEM( lcdprintPGM(MSG_PREHEAT_PLA) , BLOCK;setTargetHotend0(PLA_PREHEAT_HOTEND_TEMP);setTargetBed(PLA_PREHEAT_HPB_TEMP); #if FAN_PIN > -1 - analogWrite(FAN_PIN, PLA_PREHEAT_FAN_SPEED); + FanSpeed=PLA_PREHEAT_FAN_SPEED; + analogWrite(FAN_PIN, FanSpeed); #endif beepshort(); ); break; case ItemP_preheat_abs: MENUITEM( lcdprintPGM(MSG_PREHEAT_ABS) , BLOCK;setTargetHotend0(ABS_PREHEAT_HOTEND_TEMP);setTargetBed(ABS_PREHEAT_HPB_TEMP); #if FAN_PIN > -1 - analogWrite(FAN_PIN, ABS_PREHEAT_FAN_SPEED); + FanSpeed=ABS_PREHEAT_FAN_SPEED; + analogWrite(FAN_PIN, FanSpeed); #endif beepshort(); ); break;