summaryrefslogtreecommitdiff
path: root/bus.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus.c')
-rw-r--r--bus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bus.c b/bus.c
index 43de205..dfa10ba 100644
--- a/bus.c
+++ b/bus.c
@@ -356,6 +356,11 @@ void bus_init()
gpio_export(gpio_pins[i]);
gpio_changedirection(gpio_pins[i], true);
}
+
+ // FIXME: make this more elegant
+ //
+ // the POWER_FAIL pin is an input
+ gpio_changedirection(gpio_pins[POWER_FAIL], false);
}
}