From 2b1577998c375dde6282479928b76f46eda5704a Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 23 Mar 2025 01:06:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E5=AE=9A=E6=97=B6=E5=BC=80=E5=85=B3=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TC1/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TC1/main.c b/TC1/main.c index 5c0d4d5..c66c7e4 100644 --- a/TC1/main.c +++ b/TC1/main.c @@ -49,9 +49,9 @@ void appRestoreDefault_callback(void *const user_config_data, uint32_t size) { for (int i = 2; i < 32; i++) { int longFunc = NO_FUNCTION; //出厂设置,长按5秒开启配网模式,长按10秒恢复出厂设置 - if (i == 5) { + if (i >=5 && i< 10) { longFunc = CONFIG_WIFI; - } else if (i == 10) { + } else if (i >= 10 && i< 15) { longFunc = RESET_SYSTEM; } set_key_map(userConfigDefault->user,i, NO_FUNCTION, longFunc);