Rename sx126x_rx_boosted_gain to rx_boosted_gain

This commit is contained in:
João Brázio 2026-03-05 18:14:47 +00:00
parent 8df87d5609
commit f858f2e4bb
No known key found for this signature in database
GPG key ID: 56A1490716A324DD
6 changed files with 18 additions and 18 deletions

View file

@ -891,9 +891,9 @@ MyMesh::MyMesh(mesh::MainBoard &board, mesh::Radio &radio, mesh::MillisecondCloc
#if defined(USE_SX1262) || defined(USE_SX1268)
#ifdef SX126X_RX_BOOSTED_GAIN
_prefs.sx126x_rx_boosted_gain = SX126X_RX_BOOSTED_GAIN;
_prefs.rx_boosted_gain = SX126X_RX_BOOSTED_GAIN;
#else
_prefs.sx126x_rx_boosted_gain = 1; // enabled by default;
_prefs.rx_boosted_gain = 1; // enabled by default;
#endif
#endif
@ -920,7 +920,7 @@ void MyMesh::begin(FILESYSTEM *fs) {
radio_set_tx_power(_prefs.tx_power_dbm);
#if defined(USE_SX1262) || defined(USE_SX1268)
radio_set_rx_boosted_gain_mode(_prefs.sx126x_rx_boosted_gain);
radio_set_rx_boosted_gain_mode(_prefs.rx_boosted_gain);
MESH_DEBUG_PRINTLN("SX126x RX Boosted Gain Mode: %s",
radio_get_rx_boosted_gain_mode() ? "Enabled" : "Disabled");
#endif