- Put Modemconfig in logical order and fix typo

- non-zero config.lora.bandwidth means a custom radio config, not 'Unknown'
- Enable 'this is a new device, set region' screen again now we can actually set region.
pull/1531/head
Thomas Göttgens 2022-06-22 09:52:08 +02:00
rodzic c9fd591942
commit aead7a23f9
3 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -142,10 +142,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// -----------------------------------------------------------------------------
// Disable use of the NTP library and related features
//#define DISABLE_NTP
// #define DISABLE_NTP
// Disable the welcome screen and allow
#define DISABLE_WELCOME_UNSET
// #define DISABLE_WELCOME_UNSET
// -----------------------------------------------------------------------------
// OLED & Input

Wyświetl plik

@ -1531,10 +1531,10 @@ void DebugInfo::drawFrameSettings(OLEDDisplay *display, OLEDDisplayUiState *stat
case Config_LoRaConfig_ModemPreset_MedFast:
mode = "MedF";
break;
case Config_LoRaConfig_ModemPreset_LongFast:
case Config_LoRaConfig_ModemPreset_LongSlow:
mode = "LongS";
break;
case Config_LoRaConfig_ModemPreset_LongSlow:
case Config_LoRaConfig_ModemPreset_LongFast:
mode = "LongF";
break;
case Config_LoRaConfig_ModemPreset_VLongSlow:

Wyświetl plik

@ -211,7 +211,7 @@ const char *Channels::getName(size_t chIndex)
// the app fucked up and forgot to set channelSettings.name
if (config.lora.bandwidth != 0)
channelName = "Unset";
channelName = "Custom";
else
switch (config.lora.modem_preset) {
case Config_LoRaConfig_ModemPreset_ShortSlow:
@ -226,10 +226,10 @@ const char *Channels::getName(size_t chIndex)
case Config_LoRaConfig_ModemPreset_MedFast:
channelName = "MedF";
break;
case Config_LoRaConfig_ModemPreset_LongFast:
case Config_LoRaConfig_ModemPreset_LongSlow:
channelName = "LongS";
break;
case Config_LoRaConfig_ModemPreset_LongSlow:
case Config_LoRaConfig_ModemPreset_LongFast:
channelName = "LongF";
break;
case Config_LoRaConfig_ModemPreset_VLongSlow: