Add setRxBoostedGain method declaration and implementation for SX1262/SX1268
This commit is contained in:
@@ -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
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user