Explorar o código

Update porttcp.c

guo %!s(int64=3) %!d(string=hai) anos
pai
achega
4ea860aecc
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      port/porttcp.c

+ 3 - 2
port/porttcp.c

@@ -52,7 +52,8 @@ static void tcpserver_event_notify(tcpclient_t client, rt_uint8_t event)
         }
         break;
     case TCPSERVER_EVENT_RECV:
-        if(mb_client==client){
+        if( mb_client == client)
+        {
             prvvTCPLength = tcpserver_recv(mb_client, &prvvTCPBuf, MB_TCP_BUF_SIZE, 100);
             if (prvvTCPLength)
             {
@@ -61,7 +62,7 @@ static void tcpserver_event_notify(tcpclient_t client, rt_uint8_t event)
         }
         break;
     case TCPSERVER_EVENT_DISCONNECT:
-        if(mb_client==client)
+        if (mb_client == client)
             mb_client = RT_NULL;
         break;
     default: