Browse Source

add:读不用改

Dozingfiretruck 4 years ago
parent
commit
2f77a7e7cd
1 changed files with 0 additions and 1 deletions
  1. 0 1
      app/port/luat_uart_air101.c

+ 0 - 1
app/port/luat_uart_air101.c

@@ -146,7 +146,6 @@ int luat_uart_read(int uartid, void *buffer, size_t length)
         return 0;
     }
     ret =  tls_uart_read(uartid,(u8 *) buffer,(u16)length);
-    ret = (ret == 0) ? length : 0;
     return ret;
 }