summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2012-08-02 00:14:52 -0700
committerkliment <kliment.yanev@gmail.com>2012-08-02 00:14:52 -0700
commit08c975f3fac2238044190f78611420e480241a5a (patch)
tree57ef30c64861b7d637ce09707a58d79f8495ac1c
parent0e3464eae1f0884ab11414241093c97b4cc5e1ac (diff)
parent1db03fa315d0db499fb68f745e96d67c83264192 (diff)
Merge pull request #200 from kliment/master
Merge fixes added to master into experimental
-rw-r--r--Sprinter/Sprinter.pde2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index 9ea445b..427f4f6 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -1444,7 +1444,7 @@ FORCE_INLINE void process_commands()
if (code_seen('P') && pin_status >= 0 && pin_status <= 255)
{
int pin_number = code_value();
- for(int i = 0; i < sizeof(sensitive_pins); i++)
+ for(int i = 0; i < sizeof(sensitive_pins) / sizeof(int); i++)
{
if (sensitive_pins[i] == pin_number)
{