Implement remote lna toggle cli cmd
This commit is contained in:
@@ -9,6 +9,7 @@ build_flags = ${nrf52_base.build_flags}
|
||||
-I lib/nrf52/s140_nrf52_6.1.1_API/include/nrf52
|
||||
-I variants/mesh_pocket
|
||||
-D HELTEC_MESH_POCKET
|
||||
-D USE_SX1262
|
||||
-D RADIO_CLASS=CustomSX1262
|
||||
-D WRAPPER_CLASS=CustomSX1262Wrapper
|
||||
-D LORA_TX_POWER=22
|
||||
|
||||
@@ -42,3 +42,13 @@ mesh::LocalIdentity radio_new_identity() {
|
||||
RadioNoiseListener rng(radio);
|
||||
return mesh::LocalIdentity(&rng); // create new random identity
|
||||
}
|
||||
|
||||
#if defined(USE_SX1262) || defined(USE_SX1268)
|
||||
void radio_set_rx_boosted_gain_mode(bool rxbgm) {
|
||||
radio.setRxBoostedGainMode(rxbgm);
|
||||
}
|
||||
|
||||
bool radio_get_rx_boosted_gain_mode() {
|
||||
return radio.getRxBoostedGainMode();
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -31,3 +31,8 @@ mesh::LocalIdentity radio_new_identity();
|
||||
|
||||
extern SensorManager sensors;
|
||||
|
||||
#if defined(USE_SX1262) || defined(USE_SX1268)
|
||||
bool radio_get_rx_boosted_gain_mode();
|
||||
void radio_set_rx_boosted_gain_mode(bool rxbgm);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user