Browse Source

Merge 78723d2565 into db232808aa

pull/3076/merge
Mike D 16 hours ago
committed by GitHub
parent
commit
15a1955894
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 11
      src/helpers/radiolib/CustomLR1110.h

11
src/helpers/radiolib/CustomLR1110.h

@ -36,8 +36,15 @@ 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);
// include the PREAMBLE_DETECTED irq bit in reported flags.
//
// NOTE: the first argument is the RX *timeout*, not an IRQ mask. Passing
// RADIOLIB_LR11X0_IRQ_PREAMBLE_DETECTED (1<<4 = 16) here armed the receiver
// with a 16-tick timeout -- at the LR11x0's 30.52us tick that is a ~488us
// receive window, so the radio dropped out of RX before any packet could
// arrive and the node never received anything. It must stay RX_TIMEOUT_INF
// (continuous RX), which is what LR11x0::startReceive() itself passes.
return LR1110::startReceive(RADIOLIB_LR11X0_RX_TIMEOUT_INF, RADIOLIB_IRQ_RX_DEFAULT_FLAGS | (1UL << RADIOLIB_IRQ_PREAMBLE_DETECTED), RADIOLIB_IRQ_RX_DEFAULT_MASK, 0);
}
bool isReceiving() {

Loading…
Cancel
Save