From eec87f54328d64828fd37575f18b23430b670485 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Wed, 26 Sep 2012 15:14:53 -0400 Subject: initial addition of gpib driver --- bus.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bus.c') diff --git a/bus.c b/bus.c index dfa10ba..a860893 100644 --- a/bus.c +++ b/bus.c @@ -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; } } -- cgit