From c400a1428e83b268ee9a0158e26c619e15b3d599 Mon Sep 17 00:00:00 2001 From: Davide Lasagna Date: Wed, 29 Mar 2023 18:21:18 +0100 Subject: [PATCH 1/2] fix #709 --- src/BuildOpt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BuildOpt.h b/src/BuildOpt.h index d376d2e8..50ccb809 100644 --- a/src/BuildOpt.h +++ b/src/BuildOpt.h @@ -746,7 +746,7 @@ #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) #define RADIOLIB_NC (0xFF) #define RADIOLIB_DEFAULT_SPI SPI - #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(2000000, MSBFIRST, SPI_MODE0) + #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(1000000, MSBFIRST, SPI_MODE0) #define RADIOLIB_NONVOLATILE PROGMEM #define RADIOLIB_NONVOLATILE_READ_BYTE(addr) pgm_read_byte(addr) #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) pgm_read_dword(addr) From 642cbd8bfd7b4e77e1d39a2c05b3e8fea15c756b Mon Sep 17 00:00:00 2001 From: Davide Lasagna Date: Thu, 30 Mar 2023 09:49:50 +0100 Subject: [PATCH 2/2] added link to original issue --- src/BuildOpt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BuildOpt.h b/src/BuildOpt.h index 50ccb809..76770580 100644 --- a/src/BuildOpt.h +++ b/src/BuildOpt.h @@ -746,7 +746,7 @@ #define RADIOLIB_DIGITAL_PIN_TO_INTERRUPT(p) digitalPinToInterrupt(p) #define RADIOLIB_NC (0xFF) #define RADIOLIB_DEFAULT_SPI SPI - #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(1000000, MSBFIRST, SPI_MODE0) + #define RADIOLIB_DEFAULT_SPI_SETTINGS SPISettings(1000000, MSBFIRST, SPI_MODE0) // see issue #709 #define RADIOLIB_NONVOLATILE PROGMEM #define RADIOLIB_NONVOLATILE_READ_BYTE(addr) pgm_read_byte(addr) #define RADIOLIB_NONVOLATILE_READ_DWORD(addr) pgm_read_dword(addr)