correct range check for increased array size due to additional gpios on model b+