From 45615b5812afc9269edc420de915a043bd248f01 Mon Sep 17 00:00:00 2001 From: Stacey Sheldon Date: Fri, 30 Dec 2011 13:07:25 -0500 Subject: [PATCH] com: reduce buffer sizes on com interfaces on CC Now that the COM layer fragments to the underlying buffer sizes, the COM layer buffers can shrink below single message sizes. --- flight/CopterControl/System/pios_board.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flight/CopterControl/System/pios_board.c b/flight/CopterControl/System/pios_board.c index 3a28f5d4c..c8320175d 100644 --- a/flight/CopterControl/System/pios_board.c +++ b/flight/CopterControl/System/pios_board.c @@ -780,12 +780,12 @@ static const struct pios_sbus_cfg pios_sbus_cfg = { #include "pios_com_priv.h" -#define PIOS_COM_TELEM_RF_RX_BUF_LEN 96 +#define PIOS_COM_TELEM_RF_RX_BUF_LEN 32 #define PIOS_COM_TELEM_RF_TX_BUF_LEN 12 #define PIOS_COM_GPS_RX_BUF_LEN 32 -#define PIOS_COM_TELEM_USB_RX_BUF_LEN 96 +#define PIOS_COM_TELEM_USB_RX_BUF_LEN 65 #define PIOS_COM_TELEM_USB_TX_BUF_LEN 65 #define PIOS_COM_BRIDGE_RX_BUF_LEN 65 @@ -1023,9 +1023,9 @@ const struct pios_usb_com_cfg pios_usb_com_cdc_cfg = { uint32_t pios_com_telem_rf_id; uint32_t pios_com_telem_usb_id; -uint32_t pios_com_vcp_id = 0; +uint32_t pios_com_vcp_id; uint32_t pios_com_gps_id; -uint32_t pios_com_bridge_id = 0; +uint32_t pios_com_bridge_id; /** * PIOS_Board_Init()