From 81056ce51fd71a14df1297e1a86ceea6f41a22ac Mon Sep 17 00:00:00 2001 From: Gabriel Ricard Date: Wed, 12 Jun 2013 22:19:42 -0400 Subject: [PATCH] Fixed a bug causing it to always turn on in programming mode (THIS is exactly why I usually put the constants first in an if statement) --- GCode.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GCode.ino b/GCode.ino index b315cdf..f471d21 100644 --- a/GCode.ino +++ b/GCode.ino @@ -169,7 +169,7 @@ void setup() { // do a little power on color burst like Tadao board does powerOnLEDBurst(OperatingMode); - if( OperatingMode = MODE_PROGRAMMING ) { + if( MODE_PROGRAMMING == OperatingMode ) { // track pull time so we can reset the board if held for a certain length of time Prog_TriggerDownStart = millis(); }