Skip to content

Commit 7ad45d1

Browse files
authored
Merge pull request #993 from recrof/allow_lower_bw_sf
allow saving spreading factor from 5 and bandwidth from 7.8kHz
2 parents 7abe6c9 + 87677fd commit 7ad45d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/companion_radio/MyMesh.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,8 +706,8 @@ void MyMesh::begin(bool has_display) {
706706
_prefs.rx_delay_base = constrain(_prefs.rx_delay_base, 0, 20.0f);
707707
_prefs.airtime_factor = constrain(_prefs.airtime_factor, 0, 9.0f);
708708
_prefs.freq = constrain(_prefs.freq, 400.0f, 2500.0f);
709-
_prefs.bw = constrain(_prefs.bw, 62.5f, 500.0f);
710-
_prefs.sf = constrain(_prefs.sf, 7, 12);
709+
_prefs.bw = constrain(_prefs.bw, 7.8f, 500.0f);
710+
_prefs.sf = constrain(_prefs.sf, 5, 12);
711711
_prefs.cr = constrain(_prefs.cr, 5, 8);
712712
_prefs.tx_power_dbm = constrain(_prefs.tx_power_dbm, 1, MAX_LORA_TX_POWER);
713713

src/helpers/CommonCLI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ void CommonCLI::loadPrefsInt(FILESYSTEM* fs, const char* filename) {
7777
_prefs->direct_tx_delay_factor = constrain(_prefs->direct_tx_delay_factor, 0, 2.0f);
7878
_prefs->airtime_factor = constrain(_prefs->airtime_factor, 0, 9.0f);
7979
_prefs->freq = constrain(_prefs->freq, 400.0f, 2500.0f);
80-
_prefs->bw = constrain(_prefs->bw, 62.5f, 500.0f);
81-
_prefs->sf = constrain(_prefs->sf, 7, 12);
80+
_prefs->bw = constrain(_prefs->bw, 7.8f, 500.0f);
81+
_prefs->sf = constrain(_prefs->sf, 5, 12);
8282
_prefs->cr = constrain(_prefs->cr, 5, 8);
8383
_prefs->tx_power_dbm = constrain(_prefs->tx_power_dbm, 1, 30);
8484
_prefs->multi_acks = constrain(_prefs->multi_acks, 0, 1);

0 commit comments

Comments
 (0)