summaryrefslogtreecommitdiff
path: root/Sprinter
diff options
context:
space:
mode:
authorJason von Nieda <jason@vonnieda.org>2012-08-02 00:08:14 -0700
committerJason von Nieda <jason@vonnieda.org>2012-08-02 00:08:14 -0700
commit7ef1d5bac324160d69ee56c15b11ce27f932231e (patch)
tree6040c3985608518c12ac4d449a41becdf1e18b98 /Sprinter
parent3dca6f03e1e95458d50aec9ac097b85486b7b4b1 (diff)
Fixes an array length calculation bug. The bug causes M42 pin sets to fail.
Diffstat (limited to 'Sprinter')
-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)
{