and fix it on esp32 again

This commit is contained in:
Jonathan Bennett
2026-04-30 16:03:35 -05:00
parent b02193f341
commit fbccf910d4

View File

@@ -334,7 +334,11 @@ void SerialHalDevice::handleSpiTransfer(const meshtastic_SerialHalCommand &cmd,
{
concurrency::LockGuard guard(spiLock);
spiBus.beginTransaction(SPISettings(4000000, MSBFIRST, SPI_MODE0));
#ifdef ARCH_ESP32
spiBus.transferBytes(cmd.data.bytes, response.data.bytes, cmd.data.size);
#else
spiBus.transfer(cmd.data.bytes, response.data.bytes, cmd.data.size);
#endif
spiBus.endTransaction();
}
#else