diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-06-07 22:09:27 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-06-07 22:09:27 +0100 |
| commit | 72da9194a40d1d50f81740a4cd22739fe4caa009 (patch) | |
| tree | 90985a659088a3e4adb420a0af0c957c7184ce06 | |
| parent | c1617e04c47c39756667561796a1899f058f5ba5 (diff) | |
fixed direction bug output
| -rw-r--r-- | src/overo_gpioout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/overo_gpioout.c b/src/overo_gpioout.c index 1e8c535..aefed97 100644 --- a/src/overo_gpioout.c +++ b/src/overo_gpioout.c @@ -79,7 +79,7 @@ void *overo_gpioout_new(t_floatarg f) int t=fwrite( gpionum, sizeof(char), 3, x->fs ); fclose(x->fs); - char dirfile[34]; + char dirfile[35]; sprintf(dirfile,"/sys/class/gpio/gpio%d/direction",x->gpioNum); x->fs = fopen(dirfile, "w" ); t=fwrite( "out", sizeof(char), 3, x->fs ); |
