Browse Source
Merge pull request #993 from recrof/allow_lower_bw_sf
allow saving spreading factor from 5 and bandwidth from 7.8kHz
pull/1038/head
ripplebiz
7 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
4 additions and
4 deletions
-
examples/companion_radio/MyMesh.cpp
-
src/helpers/CommonCLI.cpp
|
|
|
@ -706,8 +706,8 @@ void MyMesh::begin(bool has_display) { |
|
|
|
_prefs.rx_delay_base = constrain(_prefs.rx_delay_base, 0, 20.0f); |
|
|
|
_prefs.airtime_factor = constrain(_prefs.airtime_factor, 0, 9.0f); |
|
|
|
_prefs.freq = constrain(_prefs.freq, 400.0f, 2500.0f); |
|
|
|
_prefs.bw = constrain(_prefs.bw, 62.5f, 500.0f); |
|
|
|
_prefs.sf = constrain(_prefs.sf, 7, 12); |
|
|
|
_prefs.bw = constrain(_prefs.bw, 7.8f, 500.0f); |
|
|
|
_prefs.sf = constrain(_prefs.sf, 5, 12); |
|
|
|
_prefs.cr = constrain(_prefs.cr, 5, 8); |
|
|
|
_prefs.tx_power_dbm = constrain(_prefs.tx_power_dbm, 1, MAX_LORA_TX_POWER); |
|
|
|
|
|
|
|
|
|
|
|
@ -77,8 +77,8 @@ void CommonCLI::loadPrefsInt(FILESYSTEM* fs, const char* filename) { |
|
|
|
_prefs->direct_tx_delay_factor = constrain(_prefs->direct_tx_delay_factor, 0, 2.0f); |
|
|
|
_prefs->airtime_factor = constrain(_prefs->airtime_factor, 0, 9.0f); |
|
|
|
_prefs->freq = constrain(_prefs->freq, 400.0f, 2500.0f); |
|
|
|
_prefs->bw = constrain(_prefs->bw, 62.5f, 500.0f); |
|
|
|
_prefs->sf = constrain(_prefs->sf, 7, 12); |
|
|
|
_prefs->bw = constrain(_prefs->bw, 7.8f, 500.0f); |
|
|
|
_prefs->sf = constrain(_prefs->sf, 5, 12); |
|
|
|
_prefs->cr = constrain(_prefs->cr, 5, 8); |
|
|
|
_prefs->tx_power_dbm = constrain(_prefs->tx_power_dbm, 1, 30); |
|
|
|
_prefs->multi_acks = constrain(_prefs->multi_acks, 0, 1); |
|
|
|
|