@@ -95,7 +95,7 @@ void CommonCLI::loadPrefsInt(FILESYSTEM* fs, const char* filename) {
9595 _prefs->tx_delay_factor = constrain (_prefs->tx_delay_factor , 0 , 2 .0f );
9696 _prefs->direct_tx_delay_factor = constrain (_prefs->direct_tx_delay_factor , 0 , 2 .0f );
9797 _prefs->airtime_factor = constrain (_prefs->airtime_factor , 0 , 9 .0f );
98- _prefs->freq = constrain (_prefs->freq , 400 .0f , 2500 .0f );
98+ _prefs->freq = constrain (_prefs->freq , 150 .0f , 2500 .0f );
9999 _prefs->bw = constrain (_prefs->bw , 7 .8f , 500 .0f );
100100 _prefs->sf = constrain (_prefs->sf , 5 , 12 );
101101 _prefs->cr = constrain (_prefs->cr , 5 , 8 );
@@ -275,7 +275,7 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
275275 uint8_t sf = num > 2 ? atoi (parts[2 ]) : 0 ;
276276 uint8_t cr = num > 3 ? atoi (parts[3 ]) : 0 ;
277277 int temp_timeout_mins = num > 4 ? atoi (parts[4 ]) : 0 ;
278- if (freq >= 300 .0f && freq <= 2500 .0f && sf >= 5 && sf <= 12 && cr >= 5 && cr <= 8 && bw >= 7 .0f && bw <= 500 .0f && temp_timeout_mins > 0 ) {
278+ if (freq >= 150 .0f && freq <= 2500 .0f && sf >= 5 && sf <= 12 && cr >= 5 && cr <= 8 && bw >= 7 .0f && bw <= 500 .0f && temp_timeout_mins > 0 ) {
279279 _callbacks->applyTempRadioParams (freq, bw, sf, cr, temp_timeout_mins);
280280 sprintf (reply, " OK - temp params for %d mins" , temp_timeout_mins);
281281 } else {
@@ -535,7 +535,7 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
535535 float bw = num > 1 ? strtof (parts[1 ], nullptr ) : 0 .0f ;
536536 uint8_t sf = num > 2 ? atoi (parts[2 ]) : 0 ;
537537 uint8_t cr = num > 3 ? atoi (parts[3 ]) : 0 ;
538- if (freq >= 300 .0f && freq <= 2500 .0f && sf >= 5 && sf <= 12 && cr >= 5 && cr <= 8 && bw >= 7 .0f && bw <= 500 .0f ) {
538+ if (freq >= 150 .0f && freq <= 2500 .0f && sf >= 5 && sf <= 12 && cr >= 5 && cr <= 8 && bw >= 7 .0f && bw <= 500 .0f ) {
539539 _prefs->sf = sf;
540540 _prefs->cr = cr;
541541 _prefs->freq = freq;
@@ -720,7 +720,7 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
720720 }
721721 } else if (memcmp (command, " sensor set " , 11 ) == 0 ) {
722722 strcpy (tmp, &command[11 ]);
723- const char *parts[2 ];
723+ const char *parts[2 ];
724724 int num = mesh::Utils::parseTextParts (tmp, parts, 2 , ' ' );
725725 const char *key = (num > 0 ) ? parts[0 ] : " " ;
726726 const char *value = (num > 1 ) ? parts[1 ] : " null" ;
@@ -743,7 +743,7 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
743743 dp = strchr (dp, 0 );
744744 int i;
745745 for (i = start; i < end && (dp-reply < 134 ); i++) {
746- sprintf (dp, " %s=%s\n " ,
746+ sprintf (dp, " %s=%s\n " ,
747747 _sensors->getSettingName (i),
748748 _sensors->getSettingValue (i));
749749 dp = strchr (dp, 0 );
@@ -823,8 +823,8 @@ void CommonCLI::handleCommand(uint32_t sender_timestamp, const char* command, ch
823823 bool active = !strcmp (_sensors->getSettingByKey (" gps" ), " 1" );
824824 if (enabled) {
825825 sprintf (reply, " on, %s, %s, %d sats" ,
826- active?" active" :" deactivated" ,
827- fix?" fix" :" no fix" ,
826+ active?" active" :" deactivated" ,
827+ fix?" fix" :" no fix" ,
828828 sats);
829829 } else {
830830 strcpy (reply, " off" );
0 commit comments