Remove extra SPI byte flip (#1202)

Fixes #1201
This commit is contained in:
Carter Nelson 2023-02-17 12:42:31 -08:00 committed by GitHub
parent 97e787e48a
commit ba413bb7ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,7 +135,6 @@ void SPIClassRP2040::transfer(void *buf, size_t count) {
uint8_t *buff = reinterpret_cast<uint8_t *>(buf); uint8_t *buff = reinterpret_cast<uint8_t *>(buf);
for (size_t i = 0; i < count; i++) { for (size_t i = 0; i < count; i++) {
*buff = transfer(*buff); *buff = transfer(*buff);
*buff = (_spis.getBitOrder() == MSBFIRST) ? *buff : reverseByte(*buff);
buff++; buff++;
} }
DEBUGSPI("SPI::transfer completed\n"); DEBUGSPI("SPI::transfer completed\n");