diff options
Diffstat (limited to 'bus.c')
-rw-r--r-- | bus.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -326,7 +326,7 @@ static unsigned gpio_pins[] = { GPIO0_X + 22, // i.e., GPIO0_22 GPIO1_X + 15, // i.e., GPIO1_15 GPIO1_X + 14, GPIO0_X + 27, - GPIO1_X + 12 + GPIO1_X + 12 }; @@ -367,9 +367,9 @@ void bus_init() int bus_getpin(int pin) { - if (isbb) { - return gpio_readvalue(gpio_pins[pin]); - } else { + if (isbb) { + return gpio_readvalue(gpio_pins[pin]); + } else { return 0; } } |