tighten up detection of open circuit on input pin 1

fixes mindboards/ev3dev-kernel#32