mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Add setRxBoostedGain method declaration and implementation for SX1262/SX1268
This commit is contained in:
parent
9a95e25ef2
commit
3e7fb4add1
2 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue