Dozingfiretruck 4 жил өмнө
parent
commit
6158faa712

+ 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) {