Fix for GPIO reading.