mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-13 05:28:14 +08:00
修复总开关逻辑问题
This commit is contained in:
@@ -449,6 +449,10 @@ static int TotalSocketSetEnabled(httpd_request_t *req){
|
|||||||
|
|
||||||
sscanf(buf, "%d", &on);
|
sscanf(buf, "%d", &on);
|
||||||
UserRelaySetAll(on);
|
UserRelaySetAll(on);
|
||||||
|
int i = 0;
|
||||||
|
for (; i < SOCKET_NUM; i++) {
|
||||||
|
UserMqttSendSocketState(i);
|
||||||
|
}
|
||||||
UserMqttSendTotalSocketState();
|
UserMqttSendTotalSocketState();
|
||||||
send_http("OK", 2, exit, &err);
|
send_http("OK", 2, exit, &err);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user