normalizeReplacementSettings

fun normalizeReplacementSettings(settings: List<ChannelSettings>, loraConfig: Config.LoRaConfig?): List<ChannelSettings>(source)

Normalizes replacement settings so firmware only materializes real, distinct channels.

Slot zero is preserved as-is. Blank placeholder secondaries and semantic duplicates under loraConfig are removed, and the remaining secondaries compact into sequential slots.