From bac2be15768df5fe5a3d72b82e4d08263428ee4a Mon Sep 17 00:00:00 2001 From: jgromes Date: Fri, 5 Feb 2021 23:25:02 +0100 Subject: [PATCH] [SX126x] Simplify SPI slowdown --- src/modules/SX126x/SX126x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/SX126x/SX126x.cpp b/src/modules/SX126x/SX126x.cpp index cbe356fb..8a1809ca 100644 --- a/src/modules/SX126x/SX126x.cpp +++ b/src/modules/SX126x/SX126x.cpp @@ -1724,7 +1724,7 @@ int16_t SX126x::SPItransfer(uint8_t* cmd, uint8_t cmdLen, bool write, uint8_t* d // some faster platforms require a short delay here // not sure why, but it seems that long enough SPI transaction // (e.g. setPacketParams for GFSK) will fail without it - #if defined(ARDUINO_ARCH_STM32) || defined(SAMD_SERIES) + #if defined(RADIOLIB_SPI_SLOWDOWN) Module::delay(1); #endif #endif