From 4982a89bcd521cca15c57e2c4e181140c14beefd Mon Sep 17 00:00:00 2001 From: Tianyu Gao Date: Sat, 13 Apr 2019 16:38:35 +0000 Subject: [PATCH] modify audio hello --- biscuit/c/audio_hello.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/biscuit/c/audio_hello.c b/biscuit/c/audio_hello.c index cd74ee7..9a0ca90 100644 --- a/biscuit/c/audio_hello.c +++ b/biscuit/c/audio_hello.c @@ -30,16 +30,17 @@ int main(int argc, char **argv) fprintf(stdout, "fail to open /dev/gpio"); return 1; } - if (ioctl(fd_gpio, 10, NULL) != 0) { + 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, 20, NULL) != 0) { + if (ioctl(fd_gpio, 2, NULL) != 0) { fprintf(stdout, "fail to use ioctl on /dev/gpio"); return 1; } write(fd_gpio, "1", 1); + fprintf(stdout, "this is new sfsimg 2\n"); return 0; }