Skip to content

Commit 52527e2

Browse files
authored
Use lora.use_preset config to get name (#8057)
1 parent 6a3b2ce commit 52527e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mesh/Channels.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,8 +428,8 @@ bool Channels::setDefaultPresetCryptoForHash(ChannelHash channelHash)
428428
// Iterate all known presets
429429
for (int preset = _meshtastic_Config_LoRaConfig_ModemPreset_MIN; preset <= _meshtastic_Config_LoRaConfig_ModemPreset_MAX;
430430
++preset) {
431-
const char *name =
432-
DisplayFormatters::getModemPresetDisplayName((meshtastic_Config_LoRaConfig_ModemPreset)preset, false, false);
431+
const char *name = DisplayFormatters::getModemPresetDisplayName((meshtastic_Config_LoRaConfig_ModemPreset)preset, false,
432+
config.lora.use_preset);
433433
if (!name)
434434
continue;
435435
if (strcmp(name, "Invalid") == 0)

0 commit comments

Comments
 (0)