Skip to content

Commit 83b7a95

Browse files
authored
Merge pull request #2 from weebl2000/2026/remote-lna
Make sure LR1110 builds
2 parents 92bef49 + 9af332b commit 83b7a95

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/helpers/radiolib/CustomLR1110.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include "MeshCore.h"
55

66
class CustomLR1110 : public LR1110 {
7+
bool _rx_boosted = false;
8+
79
public:
810
CustomLR1110(Module *mod) : LR1110(mod) { }
911

@@ -22,6 +24,13 @@ class CustomLR1110 : public LR1110 {
2224

2325
float getFreqMHz() const { return freqMHz; }
2426

27+
int16_t setRxBoostedGainMode(bool en) {
28+
_rx_boosted = en;
29+
return LR1110::setRxBoostedGainMode(en);
30+
}
31+
32+
bool getRxBoostedGainMode() const { return _rx_boosted; }
33+
2534
bool isReceiving() {
2635
uint16_t irq = getIrqStatus();
2736
bool detected = ((irq & RADIOLIB_LR11X0_IRQ_SYNC_WORD_HEADER_VALID) || (irq & RADIOLIB_LR11X0_IRQ_PREAMBLE_DETECTED));

0 commit comments

Comments
 (0)