summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2012-08-02 00:13:04 -0700
committerkliment <kliment.yanev@gmail.com>2012-08-02 00:13:04 -0700
commit1db03fa315d0db499fb68f745e96d67c83264192 (patch)
tree6040c3985608518c12ac4d449a41becdf1e18b98
parent3dca6f03e1e95458d50aec9ac097b85486b7b4b1 (diff)
parent7ef1d5bac324160d69ee56c15b11ce27f932231e (diff)
Merge pull request #199 from vonnieda/master
Fixes an array length calculation bug that breaks M42 pin setting.
-rw-r--r--Sprinter/Sprinter.pde2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index 8359fed..0254a68 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -1389,7 +1389,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)
{