diff options
Diffstat (limited to 'bus.c')
-rw-r--r-- | bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |