mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-30 11:44:01 -04:00
Merge pull request #52 from lgoix/fixUnrecognizedConfig
Fix the crash from unrecognized ModemConfig #50
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user