diff --git a/applications/ttTR/ttTR.c b/applications/ttTR/ttTR.c index f3e9441..b056578 100644 --- a/applications/ttTR/ttTR.c +++ b/applications/ttTR/ttTR.c @@ -132,7 +132,7 @@ int tcpRec(unsigned char *recv_data) struct rt_messagequeue TTrx_mq; void init_mq(void) { - static char msg_pool[1024*2]; + static char msg_pool[1024*5]; /* 初始化消息队列 */ int result = rt_mq_init(&TTrx_mq, "TTrx_mq", msg_pool, /* 存放消息的缓冲区 */ diff --git a/applications/ttTR/ttTR.h b/applications/ttTR/ttTR.h index 06a11f9..e03901d 100644 --- a/applications/ttTR/ttTR.h +++ b/applications/ttTR/ttTR.h @@ -14,7 +14,7 @@ //struct rt_messagequeue TTrx_mq; typedef struct { - rt_uint8_t data[512]; + rt_uint8_t data[400]; int size; }TTRx_MSG;