boardd: use full buffer size

old-commit-hash: d2fa746b12afb73d1b22f5c867938f49d9c34e08
This commit is contained in:
Adeeb Shihadeh
2023-07-17 10:09:13 -07:00
parent dcd74839f9
commit ac33a1208e
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
#define TIMEOUT 0
#define SPI_BUF_SIZE 1024
#define SPI_BUF_SIZE 2048
// comms base class

View File

@@ -163,7 +163,7 @@ int PandaSpiHandle::bulk_read(unsigned char endpoint, unsigned char* data, int l
}
int PandaSpiHandle::bulk_transfer(uint8_t endpoint, uint8_t *tx_data, uint16_t tx_len, uint8_t *rx_data, uint16_t rx_len, unsigned int timeout) {
const int xfer_size = 0x40 * 15;
const int xfer_size = SPI_BUF_SIZE - 0x40;
int ret = 0;
uint16_t length = (tx_data != NULL) ? tx_len : rx_len;