From e164ec87e4a6dedc6c9700977f2f6bab5d7654c4 Mon Sep 17 00:00:00 2001 From: kliment Date: Thu, 28 Apr 2011 01:35:36 +0200 Subject: Fix missing { causing compile error --- Tonokip_Firmware/Tonokip_Firmware.pde | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde index 9615320..fcbad1d 100644 --- a/Tonokip_Firmware/Tonokip_Firmware.pde +++ b/Tonokip_Firmware/Tonokip_Firmware.pde @@ -658,9 +658,10 @@ inline void process_commands() } break; case 106: //M106 Fan On - if (code_seen('S')) + if (code_seen('S')){ digitalWrite(FAN_PIN, HIGH); analogWrite(FAN_PIN,constrain(code_value(),0,255)); + } else digitalWrite(FAN_PIN, HIGH); break; -- cgit v1.2.1