mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-08-15 17:59:43 +00:00
LR1110: add PREAMBLE_DETECTED to reported irq flags
This commit is contained in:
@@ -35,6 +35,11 @@ class CustomLR1110 : public LR1110 {
|
|||||||
|
|
||||||
bool getRxBoostedGainMode() const { return _rx_boosted; }
|
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() {
|
bool isReceiving() {
|
||||||
uint32_t irq = getIrqStatus();
|
uint32_t irq = getIrqStatus();
|
||||||
bool preamble = irq & RADIOLIB_LR11X0_IRQ_PREAMBLE_DETECTED; // bit 4
|
bool preamble = irq & RADIOLIB_LR11X0_IRQ_PREAMBLE_DETECTED; // bit 4
|
||||||
|
|||||||
Reference in New Issue
Block a user