mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
change ModemPreset and don't reset LoRaConfig
This commit is contained in:
parent
003da7c37a
commit
f310bb2019
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue