Browse Source

remove guard on MyMesh::setRxBoostedGain()

pull/2844/head
taco 2 weeks ago
parent
commit
5d0ff7fe6e
  1. 2
      examples/simple_repeater/MyMesh.cpp
  2. 3
      examples/simple_repeater/MyMesh.h

2
examples/simple_repeater/MyMesh.cpp

@ -1062,11 +1062,9 @@ void MyMesh::setTxPower(int8_t power_dbm) {
radio_driver.setTxPower(power_dbm); radio_driver.setTxPower(power_dbm);
} }
#if defined(USE_SX1262) || defined(USE_SX1268)
void MyMesh::setRxBoostedGain(bool enable) { void MyMesh::setRxBoostedGain(bool enable) {
radio_driver.setRxBoostedGainMode(enable); radio_driver.setRxBoostedGainMode(enable);
} }
#endif
void MyMesh::formatNeighborsReply(char *reply) { void MyMesh::formatNeighborsReply(char *reply) {
char *dp = reply; char *dp = reply;

3
examples/simple_repeater/MyMesh.h

@ -252,7 +252,6 @@ public:
// To check if there is pending work // To check if there is pending work
bool hasPendingWork() const; bool hasPendingWork() const;
#if defined(USE_SX1262) || defined(USE_SX1268)
void setRxBoostedGain(bool enable) override; void setRxBoostedGain(bool enable) override;
#endif
}; };

Loading…
Cancel
Save