From a273f2b538ace4470f348a3014d1e9ab808a2691 Mon Sep 17 00:00:00 2001 From: Tianyu Gao Date: Mon, 22 Apr 2019 05:10:40 +0000 Subject: [PATCH] add pin 40 test --- biscuit/c/audio_hello.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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; }