fix GPIO_READ bug

it can be 0 and non-zero, not 0 and 1