Browse Source

add:修改发送大小

Dozingfiretruck 4 years ago
parent
commit
2a80a32381
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/port/luat_shell_air101.c

+ 2 - 2
app/port/luat_shell_air101.c

@@ -39,7 +39,7 @@ static int16_t luat_shell_uart_cb(uint16_t len, void* user_data){
 				uart_data* send_buf = (uart_data*)luat_heap_malloc(sizeof(uart_data)+l);
 				uart_data* send_buf = (uart_data*)luat_heap_malloc(sizeof(uart_data)+l);
 				send_buf->len = l;
 				send_buf->len = l;
     			memcpy(send_buf->buff, buff, l);
     			memcpy(send_buf->buff, buff, l);
-				tls_os_queue_send(shell_queue, (void *)send_buf, sizeof(rtos_msg_t));
+				tls_os_queue_send(shell_queue, (void *)send_buf, sizeof(uart_data)+l);
 			}
 			}
 		}
 		}
 	}
 	}
@@ -66,7 +66,7 @@ void luat_shell_poweron(int _drv) {
 				NULL,
 				NULL,
 				(void *)TaskStartStk,          /* task's stack start address */
 				(void *)TaskStartStk,          /* task's stack start address */
 				TASK_START_STK_SIZE * sizeof(u32), /* task's stack size, unit:byte */
 				TASK_START_STK_SIZE * sizeof(u32), /* task's stack size, unit:byte */
-				31,
+				10,
 				0);
 				0);
 }
 }