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:
parent
89ba1b59fa
commit
110c46216e
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user