Browse Source

updating RadioLib to ver 7.1.2

pull/86/head
Scott Powell 1 year ago
parent
commit
291b98cd56
  1. 2
      platformio.ini
  2. 2
      src/helpers/CustomSX1262.h
  3. 2
      src/helpers/CustomSX1268.h

2
platformio.ini

@ -14,7 +14,7 @@ monitor_speed = 115200
lib_deps = lib_deps =
SPI SPI
Wire Wire
jgromes/RadioLib @ ^6.3.0 jgromes/RadioLib @ ^7.1.2
rweather/Crypto @ ^0.4.0 rweather/Crypto @ ^0.4.0
adafruit/RTClib @ ^2.1.3 adafruit/RTClib @ ^2.1.3
melopero/Melopero RV3028 @ ^1.1.0 melopero/Melopero RV3028 @ ^1.1.0

2
src/helpers/CustomSX1262.h

@ -9,7 +9,7 @@ class CustomSX1262 : public SX1262 {
CustomSX1262(Module *mod) : SX1262(mod) { } CustomSX1262(Module *mod) : SX1262(mod) { }
bool isReceiving() { bool isReceiving() {
uint16_t irq = getIrqStatus(); uint16_t irq = getIrqFlags();
bool hasPreamble = (irq & SX126X_IRQ_HEADER_VALID); bool hasPreamble = (irq & SX126X_IRQ_HEADER_VALID);
return hasPreamble; return hasPreamble;
} }

2
src/helpers/CustomSX1268.h

@ -9,7 +9,7 @@ class CustomSX1268 : public SX1268 {
CustomSX1268(Module *mod) : SX1268(mod) { } CustomSX1268(Module *mod) : SX1268(mod) { }
bool isReceiving() { bool isReceiving() {
uint16_t irq = getIrqStatus(); uint16_t irq = getIrqFlags();
bool hasPreamble = (irq & SX126X_IRQ_HEADER_VALID); bool hasPreamble = (irq & SX126X_IRQ_HEADER_VALID);
return hasPreamble; return hasPreamble;
} }

Loading…
Cancel
Save