diff --git a/biscuit/c/audio_hello.c b/biscuit/c/audio_hello.c index 9a0ca90..98863ec 100644 --- a/biscuit/c/audio_hello.c +++ b/biscuit/c/audio_hello.c @@ -30,12 +30,7 @@ int main(int argc, char **argv) fprintf(stdout, "fail to open /dev/gpio"); return 1; } - if (ioctl(fd_gpio, 1, NULL) != 0) { - fprintf(stdout, "fail to use ioctl on /dev/gpio"); - return 1; - } - write(fd_gpio, "1", 1); - if (ioctl(fd_gpio, 2, NULL) != 0) { + if (ioctl(fd_gpio, 40, NULL) != 0) { fprintf(stdout, "fail to use ioctl on /dev/gpio"); return 1; }