We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 92bef49 + 9af332b commit 83b7a95Copy full SHA for 83b7a95
src/helpers/radiolib/CustomLR1110.h
@@ -4,6 +4,8 @@
4
#include "MeshCore.h"
5
6
class CustomLR1110 : public LR1110 {
7
+ bool _rx_boosted = false;
8
+
9
public:
10
CustomLR1110(Module *mod) : LR1110(mod) { }
11
@@ -22,6 +24,13 @@ class CustomLR1110 : public LR1110 {
22
24
23
25
float getFreqMHz() const { return freqMHz; }
26
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
34
bool isReceiving() {
35
uint16_t irq = getIrqStatus();
36
bool detected = ((irq & RADIOLIB_LR11X0_IRQ_SYNC_WORD_HEADER_VALID) || (irq & RADIOLIB_LR11X0_IRQ_PREAMBLE_DETECTED));
0 commit comments