Browse Source

LR1110: add PREAMBLE_DETECTED to reported irq flags

pull/3036/head
taco 6 days ago
parent
commit
ea5d7c8bf5
  1. 5
      src/helpers/radiolib/CustomLR1110.h

5
src/helpers/radiolib/CustomLR1110.h

@ -35,6 +35,11 @@ class CustomLR1110 : public LR1110 {
bool getRxBoostedGainMode() const { return _rx_boosted; }
int16_t startReceive() override {
// include the PREAMBLE_DETECTED irq bit in reported flags
return LR1110::startReceive(RADIOLIB_LR11X0_IRQ_PREAMBLE_DETECTED, RADIOLIB_IRQ_RX_DEFAULT_FLAGS | (1UL << RADIOLIB_IRQ_PREAMBLE_DETECTED), RADIOLIB_IRQ_RX_DEFAULT_MASK, 0);
}
bool isReceiving() {
uint32_t irq = getIrqStatus();
bool preamble = irq & RADIOLIB_LR11X0_IRQ_PREAMBLE_DETECTED; // bit 4

Loading…
Cancel
Save