Corrected small bug when using direct GPIO mode