修复总开关逻辑问题

This commit is contained in:
nhkefus
2025-03-17 13:10:04 +08:00
parent 6f6c1b700f
commit b2b9152441

View File

@@ -420,6 +420,7 @@ void ProcessHaCmd(char* cmd)
if (strcmp(mac, str_mac)) return;
mqtt_log("set total_socket on[%d]", on);
UserRelaySetAll(on);
int i =0;
for (i = 0; i < SOCKET_NUM; i++)
{
UserRelaySet(i, user_config->socket_status[i]);