1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

OP-155 Flight: Increase the pios_com buffer size to support these larger objects. If this gets worse and we don't want to use as much OP memory we can make it stall the USB bus when the buffer is full.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1657 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
peabody124 2010-09-16 05:57:03 +00:00 committed by peabody124
parent 89ba1b59fa
commit 110c46216e

View File

@ -57,8 +57,8 @@ static uint8_t transfer_possible = 0;
static uint8_t rx_buffer[PIOS_USB_HID_DATA_LENGTH+2] = {0}; static uint8_t rx_buffer[PIOS_USB_HID_DATA_LENGTH+2] = {0};
static uint8_t tx_buffer[PIOS_USB_HID_DATA_LENGTH+2] = {0}; static uint8_t tx_buffer[PIOS_USB_HID_DATA_LENGTH+2] = {0};
#define TX_BUFFER_SIZE 128 #define TX_BUFFER_SIZE 512
#define RX_BUFFER_SIZE 128 #define RX_BUFFER_SIZE 512
cBuffer rxBuffer; cBuffer rxBuffer;
cBuffer txBuffer; cBuffer txBuffer;
static uint8_t rxBufferSpace[TX_BUFFER_SIZE]; static uint8_t rxBufferSpace[TX_BUFFER_SIZE];