mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: primaryChannel IndexOutOfBoundsException
This commit is contained in:
parent
97fe340587
commit
88d415f2ce
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ data class ChannelSet(
|
|||
*/
|
||||
val primaryChannel: Channel?
|
||||
get() = with(protobuf) {
|
||||
Channel(getSettings(0), loraConfig).takeIf { settingsCount > 0 }
|
||||
if (settingsCount > 0) Channel(getSettings(0), loraConfig) else null
|
||||
}
|
||||
|
||||
/// Return an URL that represents the current channel values
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue