This commit is contained in:
zogodo
2020-05-05 20:32:49 +08:00
parent 526c7b77dc
commit d0a9f2ea84
4 changed files with 4039 additions and 3996 deletions

View File

@@ -67,7 +67,7 @@ void SetSocketStatus(char* socket_status)
*/
void UserRelaySet(unsigned char i, unsigned char on)
{
if (i >= SOCKET_NUM) return;
if (i < 0 || i >= SOCKET_NUM) return;
if (on == Relay_ON)
{