Browse Source

add:发之前先清

Dozingfiretruck 3 years ago
parent
commit
6158faa712
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/port/luat_shell_air101.c

+ 1 - 0
app/port/luat_shell_air101.c

@@ -53,6 +53,7 @@ static void luat_shell(void *sdata){
 		len = 1;
 		while (len > 0 && len < 512) {
 			// printf("before luat_uart_read\r");
+			memset(buff, 0, 512);
 			len = luat_uart_read(0, buff, 511);
 			// printf("after luat_uart_read %d\r", len);
 			if (len > 0 && len < 512) {