Browse Source
Add setRxBoostedGain method declaration and implementation for SX1262/SX1268
pull/1653/head
João Brázio
3 months ago
No known key found for this signature in database
GPG Key ID: 56A1490716A324DD
2 changed files with
7 additions and
3 deletions
-
examples/simple_repeater/MyMesh.cpp
-
examples/simple_repeater/MyMesh.h
|
|
@ -1005,6 +1005,12 @@ void MyMesh::setTxPower(int8_t power_dbm) { |
|
|
radio_set_tx_power(power_dbm); |
|
|
radio_set_tx_power(power_dbm); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#if defined(USE_SX1262) || defined(USE_SX1268) |
|
|
|
|
|
void MyMesh::setRxBoostedGain(bool enable) { |
|
|
|
|
|
radio_driver.setRxBoostedGainMode(enable); |
|
|
|
|
|
} |
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
void MyMesh::formatNeighborsReply(char *reply) { |
|
|
void MyMesh::formatNeighborsReply(char *reply) { |
|
|
char *dp = reply; |
|
|
char *dp = reply; |
|
|
|
|
|
|
|
|
|
|
|
@ -241,8 +241,6 @@ public: |
|
|
bool hasPendingWork() const; |
|
|
bool hasPendingWork() const; |
|
|
|
|
|
|
|
|
#if defined(USE_SX1262) || defined(USE_SX1268) |
|
|
#if defined(USE_SX1262) || defined(USE_SX1268) |
|
|
void setRxBoostedGain(bool enable) override { |
|
|
void setRxBoostedGain(bool enable) override; |
|
|
radio_set_rx_boosted_gain_mode(enable); |
|
|
|
|
|
} |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
}; |
|
|
}; |
|
|
|