USB: reduce buffer size to save RAM
This commit is contained in:
parent
25b0466aee
commit
1065a37cdb
|
@ -47,7 +47,7 @@ static volatile bool usb_tx_ongoing = false; /**< if USB transmission is already
|
|||
static volatile bool first_connection = false; /**< used to detect when the first connection occurred */
|
||||
|
||||
/* output ring buffer, index, and available memory */
|
||||
static uint8_t tx_buffer[512] = {0}; /**< ring buffer for data to transmit */
|
||||
static uint8_t tx_buffer[256] = {0}; /**< ring buffer for data to transmit */
|
||||
static volatile uint16_t tx_i = 0; /**< current position if transmitted data */
|
||||
static volatile uint16_t tx_used = 0; /**< how much data needs to be transmitted */
|
||||
static volatile bool tx_lock = false; /**< if the transmit buffer is currently being written */
|
||||
|
|
Loading…
Reference in New Issue