Use GpioState now that bug is fixed.