Fixes an array length calculation bug. The bug causes M42 pin sets to fail.

This commit is contained in:
Jason von Nieda 2012-08-02 00:08:14 -07:00
parent 3dca6f03e1
commit 7ef1d5bac3

View file

@ -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)
{