From e4e0ca969e0d74832d434438362941744f242d5c Mon Sep 17 00:00:00 2001 From: nhkefus Date: Thu, 20 Mar 2025 12:49:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E5=90=8E=E5=8F=B0=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=201=E5=88=B010=E5=87=BB=20=E5=8A=9F=E8=83=BD=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TC1/user_gpio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TC1/user_gpio.c b/TC1/user_gpio.c index f2db8a9..8e6a1aa 100644 --- a/TC1/user_gpio.c +++ b/TC1/user_gpio.c @@ -132,14 +132,13 @@ static void KeyShortPress(int clickCnt) { return; switch (user_config->user[clickCnt]) { case SWITCH_TOTAL_SOCKET: - char i; if (RelayOut()) { UserRelaySetAll(0); } else { UserRelaySetAll(1); } - for (i = 0; i < SOCKET_NUM; i++) { + for (int i = 0; i < SOCKET_NUM; i++) { UserMqttSendSocketState(i); } UserMqttSendTotalSocketState();