mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-27 09:05:11 +00:00
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);
|
||||
}
|
||||
|
||||
#if defined(USE_SX1262) || defined(USE_SX1268)
|
||||
void MyMesh::setRxBoostedGain(bool enable) {
|
||||
radio_driver.setRxBoostedGainMode(enable);
|
||||
}
|
||||
#endif
|
||||
|
||||
void MyMesh::formatNeighborsReply(char *reply) {
|
||||
char *dp = reply;
|
||||
|
||||
|
||||
@@ -241,8 +241,6 @@ public:
|
||||
bool hasPendingWork() const;
|
||||
|
||||
#if defined(USE_SX1262) || defined(USE_SX1268)
|
||||
void setRxBoostedGain(bool enable) override {
|
||||
radio_set_rx_boosted_gain_mode(enable);
|
||||
}
|
||||
void setRxBoostedGain(bool enable) override;
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user