If usePreset is False, show value as Custom (#7812)

This commit is contained in:
Jason P
2025-09-02 05:55:57 -05:00
committed by GitHub
parent 16d7de5989
commit b8d7222423
5 changed files with 16 additions and 12 deletions

View File

@@ -589,7 +589,8 @@ void RadioInterface::applyModemConfig()
// Check if we use the default frequency slot
RadioInterface::uses_default_frequency_slot =
channel_num == hash(DisplayFormatters::getModemPresetDisplayName(config.lora.modem_preset, false)) % numChannels;
channel_num ==
hash(DisplayFormatters::getModemPresetDisplayName(config.lora.modem_preset, false, config.lora.use_preset)) % numChannels;
// Old frequency selection formula
// float freq = myRegion->freqStart + ((((myRegion->freqEnd - myRegion->freqStart) / numChannels) / 2) * channel_num);