From 1cc63fe40c167fd8a53a55e4fe0f8b69903d567a Mon Sep 17 00:00:00 2001 From: zzh <838331105@qq.com> Date: Thu, 6 Nov 2025 11:05:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_mac.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/update_mac.c b/update_mac.c index b0e24cc..cc64132 100644 --- a/update_mac.c +++ b/update_mac.c @@ -797,10 +797,10 @@ static pthread_t led_thread; static void gpio_init_yellow(void) { int fd = open("/sys/class/gpio/export", O_WRONLY); if (fd >= 0) { - write(fd, "113", 3); + write(fd, "113", 3); // TODO 注意改版对应脚名称 close(fd); } - fd = open("/sys/class/gpio/gpio113/direction", O_WRONLY); + fd = open("/sys/class/gpio/gpio113/direction", O_WRONLY); // TODO 注意改版对应脚名称 if (fd >= 0) { write(fd, "out", 3); close(fd); @@ -808,7 +808,7 @@ static void gpio_init_yellow(void) { } static void* led_blink_thread(void* arg) { - int fd = open("/sys/class/gpio/gpio113/value", O_WRONLY); + int fd = open("/sys/class/gpio/gpio113/value", O_WRONLY); // TODO 注意改版对应脚名称 if (fd < 0) return NULL; while (led_running) { write(fd, "1", 1); @@ -841,7 +841,7 @@ static void set_yellow_on(void) { stop_yellow_blink(); // 初始化GPIO并置为高电平 gpio_init_yellow(); - int fd = open("/sys/class/gpio/gpio113/value", O_WRONLY); + int fd = open("/sys/class/gpio/gpio113/value", O_WRONLY); // TODO 注意改版对应脚名称 if (fd < 0) return; write(fd, "1", 1); close(fd);