boardd: smaller spi chunk size (#28360)

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 702e4120e6b5a02f1d25089c198f1a0e9a813ac1
This commit is contained in:
Adeeb Shihadeh
2023-06-01 10:36:06 -07:00
committed by GitHub
parent 7e64d60f4b
commit 5ff24ee5bb

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 = 0x40 * 5;
int ret = 0;
uint16_t length = (tx_data != NULL) ? tx_len : rx_len;