mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Fix the crash from unrecognized ModemConfig #50
This commit is contained in:
parent
208cbd2a1c
commit
7e49395a0e
1 changed files with 4 additions and 1 deletions
|
|
@ -168,7 +168,10 @@ class ChannelFragment : ScreenFragment("Channel"), Logging {
|
|||
|
||||
val selectedChannelOptionString =
|
||||
filled_exposed_dropdown.editableText.toString()
|
||||
newSettings.modemConfig = getModemConfig(selectedChannelOptionString)
|
||||
val modemConfig = getModemConfig(selectedChannelOptionString)
|
||||
|
||||
if (modemConfig!=MeshProtos.ChannelSettings.ModemConfig.UNRECOGNIZED)
|
||||
newSettings.modemConfig = modemConfig
|
||||
// Try to change the radio, if it fails, tell the user why and throw away their redits
|
||||
try {
|
||||
model.setChannel(newSettings.build())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue