* isReceiving() now includes either preamble detect or header detect

This commit is contained in:
Scott Powell 2025-03-28 22:20:42 +11:00
parent 89bd6c3416
commit 022b43ef3d
4 changed files with 11 additions and 8 deletions

View file

@ -11,7 +11,7 @@ class CustomLR1110 : public LR1110 {
bool isReceiving() {
uint16_t irq = getIrqStatus();
bool hasPreamble = ((irq & LR1110_IRQ_HEADER_VALID) && (irq & LR1110_IRQ_HAS_PREAMBLE));
return hasPreamble;
bool detected = ((irq & LR1110_IRQ_HEADER_VALID) || (irq & LR1110_IRQ_HAS_PREAMBLE));
return detected;
}
};