mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-14 20:08:32 -04:00
change ModemPreset and don't reset LoRaConfig
This commit is contained in:
@@ -313,12 +313,12 @@ class ChannelFragment : ScreenFragment("Channel"), Logging {
|
||||
}
|
||||
|
||||
// No matter what apply the speed selection from the user
|
||||
val newLoRaConfig = loRaConfig {
|
||||
val newLoRaConfig = model.config.lora.copy {
|
||||
usePreset = true
|
||||
modemPreset = newModemPreset
|
||||
region = model.region
|
||||
txEnabled = model.txEnabled
|
||||
txPower = model.config.lora.txPower
|
||||
bandwidth = 0
|
||||
spreadFactor = 0
|
||||
codingRate = 0
|
||||
}
|
||||
|
||||
val humanName = Channel(newSettings, newLoRaConfig).humanName
|
||||
|
||||
Reference in New Issue
Block a user