diff options
author | kliment <kliment.yanev@gmail.com> | 2011-04-28 01:35:36 +0200 |
---|---|---|
committer | kliment <kliment.yanev@gmail.com> | 2011-04-28 01:35:36 +0200 |
commit | e164ec87e4a6dedc6c9700977f2f6bab5d7654c4 (patch) | |
tree | 886ca74df9b711b8c33cf0ecc8333bf18dc69848 /Tonokip_Firmware | |
parent | 896b01ab4a69b1ba202a51e3203fdd6ebc39637e (diff) |
Fix missing { causing compile error
Diffstat (limited to 'Tonokip_Firmware')
-rw-r--r-- | Tonokip_Firmware/Tonokip_Firmware.pde | 3 |
1 files changed, 2 insertions, 1 deletions
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; |