|
|
|
@ -953,8 +953,8 @@ void MyMesh::begin(FILESYSTEM *fs) { |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
radio_set_params(_prefs.freq, _prefs.bw, _prefs.sf, _prefs.cr); |
|
|
|
radio_set_tx_power(_prefs.tx_power_dbm); |
|
|
|
radio_driver.setParams(_prefs.freq, _prefs.bw, _prefs.sf, _prefs.cr); |
|
|
|
radio_driver.setTxPower(_prefs.tx_power_dbm); |
|
|
|
|
|
|
|
radio_driver.setRxBoostedGainMode(_prefs.rx_boosted_gain); |
|
|
|
MESH_DEBUG_PRINTLN("RX Boosted Gain Mode: %s", |
|
|
|
@ -1050,7 +1050,7 @@ void MyMesh::dumpLogFile() { |
|
|
|
} |
|
|
|
|
|
|
|
void MyMesh::setTxPower(int8_t power_dbm) { |
|
|
|
radio_set_tx_power(power_dbm); |
|
|
|
radio_driver.setTxPower(power_dbm); |
|
|
|
} |
|
|
|
|
|
|
|
#if defined(USE_SX1262) || defined(USE_SX1268) |
|
|
|
@ -1279,13 +1279,13 @@ void MyMesh::loop() { |
|
|
|
|
|
|
|
if (set_radio_at && millisHasNowPassed(set_radio_at)) { // apply pending (temporary) radio params
|
|
|
|
set_radio_at = 0; // clear timer
|
|
|
|
radio_set_params(pending_freq, pending_bw, pending_sf, pending_cr); |
|
|
|
radio_driver.setParams(pending_freq, pending_bw, pending_sf, pending_cr); |
|
|
|
MESH_DEBUG_PRINTLN("Temp radio params"); |
|
|
|
} |
|
|
|
|
|
|
|
if (revert_radio_at && millisHasNowPassed(revert_radio_at)) { // revert radio params to orig
|
|
|
|
revert_radio_at = 0; // clear timer
|
|
|
|
radio_set_params(_prefs.freq, _prefs.bw, _prefs.sf, _prefs.cr); |
|
|
|
radio_driver.setParams(_prefs.freq, _prefs.bw, _prefs.sf, _prefs.cr); |
|
|
|
MESH_DEBUG_PRINTLN("Radio params restored"); |
|
|
|
} |
|
|
|
|
|
|
|
|