在后台增加 1到10击 功能设置

This commit is contained in:
nhkefus
2025-03-20 12:49:42 +08:00
parent d0a71fe216
commit e4e0ca969e

View File

@@ -132,14 +132,13 @@ static void KeyShortPress(int clickCnt) {
return; return;
switch (user_config->user[clickCnt]) { switch (user_config->user[clickCnt]) {
case SWITCH_TOTAL_SOCKET: case SWITCH_TOTAL_SOCKET:
char i;
if (RelayOut()) { if (RelayOut()) {
UserRelaySetAll(0); UserRelaySetAll(0);
} else { } else {
UserRelaySetAll(1); UserRelaySetAll(1);
} }
for (i = 0; i < SOCKET_NUM; i++) { for (int i = 0; i < SOCKET_NUM; i++) {
UserMqttSendSocketState(i); UserMqttSendSocketState(i);
} }
UserMqttSendTotalSocketState(); UserMqttSendTotalSocketState();