mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-13 05:28:14 +08:00
在后台增加 1到10击 功能设置
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user