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

This commit is contained in:
Scott Powell committed 2025-03-28 22:20:42 +11:00
1 parent f1c2c96fb8
commit 01cf9d8535
4 files changed
+11 -8

No files matched your search

+2 -2
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;
}
};