Ver código fonte

fix: 隐藏spi从机的日志打印

Wendal Chen 1 ano atrás
pai
commit
7c32aa8db5
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      app/port/luat_spi_slave_air101.c

+ 2 - 2
app/port/luat_spi_slave_air101.c

@@ -21,12 +21,12 @@ static int inited;
 
 
 
 
 static s16 hsp_rx_cmd_cb(char *buf) {
 static s16 hsp_rx_cmd_cb(char *buf) {
-    printf("hsp_rx_cmd_cb %p %d", buf, buf[0]);
+    // printf("hsp_rx_cmd_cb %p %d\n", buf, buf[0]);
     l_spi_slave_event(0, 0, buf, 256);
     l_spi_slave_event(0, 0, buf, 256);
     return WM_SUCCESS;
     return WM_SUCCESS;
 }
 }
 static s16 hsp_rx_data_cb(char *buf) {
 static s16 hsp_rx_data_cb(char *buf) {
-    printf("hsp_rx_data_cb %p %d %d", buf, buf[0], buf[1]);
+    // printf("hsp_rx_data_cb %p %d %d\n", buf, buf[0], buf[1]);
     l_spi_slave_event(0, 1, buf, 1500);
     l_spi_slave_event(0, 1, buf, 1500);
     return WM_SUCCESS;
     return WM_SUCCESS;
 }
 }