mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* isReceiving() now includes either preamble detect or header detect
This commit is contained in:
parent
89bd6c3416
commit
022b43ef3d
4 changed files with 11 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue