From 04abfecf705bfc6101ec7b618b0918f6214029b2 Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Fri, 23 Jan 2026 11:29:14 -0600 Subject: [PATCH] remove us 433 --- .../org/meshtastic/core/model/ChannelOption.kt | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/core/model/src/main/kotlin/org/meshtastic/core/model/ChannelOption.kt b/core/model/src/main/kotlin/org/meshtastic/core/model/ChannelOption.kt index fdd708d8a..14bad5fdd 100644 --- a/core/model/src/main/kotlin/org/meshtastic/core/model/ChannelOption.kt +++ b/core/model/src/main/kotlin/org/meshtastic/core/model/ChannelOption.kt @@ -101,14 +101,9 @@ internal fun LoRaConfig.radioFreq(channelNum: Int): Float { val channelSpacing = regionInfo.spacing + bw // The frequency calculation attempts to match firmware behavior, // where channel_num is 0-indexed in the calculation, but 1-indexed in the app's channelNum function. - // For amateur radio regions, regionInfo.spacing is not included in the frequency calculation. // Firmware example: float freq = myRegion->freqStart + myRegion->spacing + (bw / 2000) + (channel_num * // channelSpacing); - if (regionInfo.description.contains("Amateur")) { - (regionInfo.freqStart + bw / 2) + (channelNum - 1) * channelSpacing - } else { - (regionInfo.freqStart + regionInfo.spacing + bw / 2) + (channelNum - 1) * channelSpacing - } + (regionInfo.freqStart + regionInfo.spacing + bw / 2) + (channelNum - 1) * channelSpacing } else { 0f } @@ -344,16 +339,6 @@ enum class RegionInfo( spacing = 0.015f, defaultPreset = ModemPreset.NARROW_FAST, ), - - /** US 433MHz Amateur Use band */ - HAM_US433( - RegionCode.HAM_US433, - "United States 433MHz (Amateur)", - 430.0f, - 450.0f, - wideLora = false, - defaultPreset = ModemPreset.NARROW_SLOW, - ), ; companion object {