mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: corrected channel name change behavior
This commit is contained in:
parent
e050ebd2a9
commit
dc596e25a2
2 changed files with 10 additions and 14 deletions
|
|
@ -40,11 +40,9 @@ data class ChannelSet(
|
|||
* Return the primary channel info
|
||||
*/
|
||||
val primaryChannel: Channel?
|
||||
get() =
|
||||
if (protobuf.settingsCount > 0)
|
||||
Channel(protobuf.getSettings(0), protobuf.loraConfig)
|
||||
else
|
||||
null
|
||||
get() = with(protobuf) {
|
||||
Channel(getSettings(0), loraConfig).takeIf { settingsCount > 0 }
|
||||
}
|
||||
|
||||
/// Return an URL that represents the current channel values
|
||||
/// @param upperCasePrefix - portions of the URL can be upper case to make for more efficient QR codes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue