From 158b30c38337e0e62282110a2274f79d18d9e9b8 Mon Sep 17 00:00:00 2001 From: jgromes Date: Fri, 5 Feb 2021 23:25:26 +0100 Subject: [PATCH] Added missing SX126x/8x SPI slowdown on Apollo3 --- src/BuildOpt.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/BuildOpt.h b/src/BuildOpt.h index 99547b43..212434d3 100644 --- a/src/BuildOpt.h +++ b/src/BuildOpt.h @@ -148,6 +148,9 @@ #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 + // slow down SX126x/8x SPI on this platform + #define RADIOLIB_SPI_SLOWDOWN + #elif defined(SAMD_SERIES) // Adafruit SAMD boards (M0 and M4) #define RADIOLIB_PLATFORM "Adafruit SAMD" @@ -163,6 +166,9 @@ #define RADIOLIB_SOFTWARE_SERIAL_UNSUPPORTED #define RADIOLIB_HARDWARE_SERIAL_PORT Serial1 + // slow down SX126x/8x SPI on this platform + #define RADIOLIB_SPI_SLOWDOWN + #elif defined(ARDUINO_ARCH_SAMD) // Arduino SAMD (Zero, MKR, etc.) #define RADIOLIB_PLATFORM "Arduino SAMD" @@ -251,6 +257,9 @@ // Apollo3 uses mbed libraries, which already contain ESP8266 driver #define RADIOLIB_EXCLUDE_ESP8266 + // slow down SX126x/8x SPI on this platform + #define RADIOLIB_SPI_SLOWDOWN + #elif defined(ARDUINO_ARDUINO_NANO33BLE) // Arduino Nano 33 BLE #define RADIOLIB_PLATFORM "Arduino Nano 33 BLE"