Remove unused RX boosted gain mode functions and related preprocessor directives across multiple variants

This commit is contained in:
João Brázio
2026-03-05 18:31:00 +00:00
parent f858f2e4bb
commit 9a95e25ef2
164 changed files with 53 additions and 781 deletions

View File

@@ -41,7 +41,6 @@ build_src_filter = ${Meshadventurer.build_src_filter}
+<helpers/ui/SSD1306Display.cpp>
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1262
-D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper
-D LORA_TX_POWER=22
@@ -90,7 +89,6 @@ build_src_filter = ${Meshadventurer.build_src_filter}
+<helpers/ui/SSD1306Display.cpp>
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1262
-D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper
-D LORA_TX_POWER=22
@@ -114,7 +112,6 @@ build_src_filter = ${Meshadventurer.build_src_filter}
+<helpers/ui/SSD1306Display.cpp>
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1268
-D RADIO_CLASS=CustomSX1268
-D WRAPPER_CLASS=CustomSX1268Wrapper
-D LORA_TX_POWER=22
@@ -163,7 +160,6 @@ build_src_filter = ${Meshadventurer.build_src_filter}
+<helpers/ui/SSD1306Display.cpp>
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1268
-D RADIO_CLASS=CustomSX1268
-D WRAPPER_CLASS=CustomSX1268Wrapper
-D LORA_TX_POWER=22
@@ -190,7 +186,6 @@ build_src_filter = ${Meshadventurer.build_src_filter}
build_flags =
${Meshadventurer.build_flags}
-I examples/companion_radio/ui-new
-D USE_SX1262
-D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper
-D LORA_TX_POWER=22
@@ -213,7 +208,6 @@ build_src_filter = ${Meshadventurer.build_src_filter}
build_flags =
${Meshadventurer.build_flags}
-I examples/companion_radio/ui-new
-D USE_SX1262
-D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper
-D LORA_TX_POWER=22
@@ -232,7 +226,6 @@ lib_deps =
extends = Meshadventurer
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1262
-D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper
-D LORA_TX_POWER=22
@@ -251,7 +244,6 @@ lib_deps =
extends = Meshadventurer
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1262
-D RADIO_CLASS=CustomSX1262
-D WRAPPER_CLASS=CustomSX1262Wrapper
-D LORA_TX_POWER=22
@@ -279,7 +271,6 @@ build_src_filter = ${Meshadventurer.build_src_filter}
build_flags =
${Meshadventurer.build_flags}
-I examples/companion_radio/ui-new
-D USE_SX1268
-D RADIO_CLASS=CustomSX1268
-D WRAPPER_CLASS=CustomSX1268Wrapper
-D LORA_TX_POWER=22
@@ -302,7 +293,6 @@ build_src_filter = ${Meshadventurer.build_src_filter}
build_flags =
${Meshadventurer.build_flags}
-I examples/companion_radio/ui-new
-D USE_SX1268
-D RADIO_CLASS=CustomSX1268
-D WRAPPER_CLASS=CustomSX1268Wrapper
-D LORA_TX_POWER=22
@@ -321,7 +311,6 @@ lib_deps =
extends = Meshadventurer
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1268
-D RADIO_CLASS=CustomSX1268
-D WRAPPER_CLASS=CustomSX1268Wrapper
-D LORA_TX_POWER=22
@@ -340,7 +329,6 @@ lib_deps =
extends = Meshadventurer
build_flags =
${Meshadventurer.build_flags}
-D USE_SX1268
-D RADIO_CLASS=CustomSX1268
-D WRAPPER_CLASS=CustomSX1268Wrapper
-D LORA_TX_POWER=22

View File

@@ -50,15 +50,6 @@ mesh::LocalIdentity radio_new_identity() {
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
void MASensorManager::start_gps() {
if(!gps_active) {

View File

@@ -48,7 +48,3 @@ void radio_set_params(float freq, float bw, uint8_t sf, uint8_t cr);
void radio_set_tx_power(int8_t dbm);
mesh::LocalIdentity radio_new_identity();
#if defined(USE_SX1262) || defined(USE_SX1268)
bool radio_get_rx_boosted_gain_mode();
void radio_set_rx_boosted_gain_mode(bool rxbgm);
#endif