Browse Source
Merge pull request #2 from weebl2000/2026/remote-lna
Make sure LR1110 builds
pull/1653/head
João Brázio
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
9 additions and
0 deletions
-
src/helpers/radiolib/CustomLR1110.h
|
|
|
@ -4,6 +4,8 @@ |
|
|
|
#include "MeshCore.h" |
|
|
|
|
|
|
|
class CustomLR1110 : public LR1110 { |
|
|
|
bool _rx_boosted = false; |
|
|
|
|
|
|
|
public: |
|
|
|
CustomLR1110(Module *mod) : LR1110(mod) { } |
|
|
|
|
|
|
|
@ -22,6 +24,13 @@ class CustomLR1110 : public LR1110 { |
|
|
|
|
|
|
|
float getFreqMHz() const { return freqMHz; } |
|
|
|
|
|
|
|
int16_t setRxBoostedGainMode(bool en) { |
|
|
|
_rx_boosted = en; |
|
|
|
return LR1110::setRxBoostedGainMode(en); |
|
|
|
} |
|
|
|
|
|
|
|
bool getRxBoostedGainMode() const { return _rx_boosted; } |
|
|
|
|
|
|
|
bool isReceiving() { |
|
|
|
uint16_t irq = getIrqStatus(); |
|
|
|
bool detected = ((irq & RADIOLIB_LR11X0_IRQ_SYNC_WORD_HEADER_VALID) || (irq & RADIOLIB_LR11X0_IRQ_PREAMBLE_DETECTED)); |
|
|
|
|