Fix GPIO input handling; now we can read the board mode