diff --git a/uboot-mtk-20250711/cmd/Kconfig b/uboot-mtk-20250711/cmd/Kconfig index cc210abfa..d6af01f41 100644 --- a/uboot-mtk-20250711/cmd/Kconfig +++ b/uboot-mtk-20250711/cmd/Kconfig @@ -3120,7 +3120,7 @@ config CMD_SPAWN_NUM_JOBS config CMD_GL_BTN bool "GL-iNet button check command" - depends on BUTTON + depends on BUTTON && LED default n select POLLER diff --git a/uboot-mtk-20250711/cmd/glbtn.c b/uboot-mtk-20250711/cmd/glbtn.c index 962c2c57e..19af7d8b0 100644 --- a/uboot-mtk-20250711/cmd/glbtn.c +++ b/uboot-mtk-20250711/cmd/glbtn.c @@ -1,8 +1,9 @@ -#include #include #include +#include #include #include +#include #include #include diff --git a/uboot-mtk-20250711/cmd/led_blink.c b/uboot-mtk-20250711/cmd/led_blink.c index cc5c6a3b6..8bc1c56fd 100644 --- a/uboot-mtk-20250711/cmd/led_blink.c +++ b/uboot-mtk-20250711/cmd/led_blink.c @@ -1,9 +1,9 @@ // SPDX-License-Identifier: GPL-2.0+ -#include #include #include #include +#include #define MAX_LED_BLINK 5 @@ -24,7 +24,7 @@ static void led_blink_func(struct poller_struct *poller) struct led_blink *led = &led_blinks[i]; if (!led->dev) continue; - + if (led->next_event && now < led->next_event) continue;