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