From 05ceeec1ba4efb0313af059bdb91a5db374f04fa Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 1 May 2017 12:46:38 -1000 Subject: [PATCH] piofirmware:Base the debug message buffer size on the defconfig Recover 16 bytes. Size of debug max message is 40 so limit the usart tx buffer to same size. --- src/modules/px4iofirmware/px4io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/px4iofirmware/px4io.c b/src/modules/px4iofirmware/px4io.c index b20a6e1f06..b93f7a7553 100644 --- a/src/modules/px4iofirmware/px4io.c +++ b/src/modules/px4iofirmware/px4io.c @@ -85,7 +85,7 @@ static volatile uint8_t msg_next_out, msg_next_in; * output. */ #define NUM_MSG 1 -static char msg[NUM_MSG][40]; +static char msg[NUM_MSG][CONFIG_USART1_TXBUFSIZE]; static void heartbeat_blink(void); static void ring_blink(void);