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 Ben Meadors
parent 7d1300ab66
commit cfc1bf10c9
5 changed files with 16 additions and 12 deletions

View File

@@ -586,7 +586,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);