summaryrefslogtreecommitdiff
path: root/bus.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus.c')
-rw-r--r--bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bus.c b/bus.c
index 26963cc..2bebb57 100644
--- a/bus.c
+++ b/bus.c
@@ -274,7 +274,7 @@ static int gpio_readvalue(unsigned base, unsigned io)
gpio_getvaluenodepath(base, io, path);
FILE* valuefile = fopen(path, "r");
if (valuefile != NULL) {
- char value[2]; // value will be a single char and \n
+ char value[2]; // value will be a single char and \n
fread(value, 1, 2, valuefile);
fclose(valuefile);
return atoi(value);