mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: add fixed_position to config import/export
This commit is contained in:
parent
0062d38c8b
commit
aa84d47375
5 changed files with 64 additions and 35 deletions
|
|
@ -372,7 +372,7 @@ class RadioConfigViewModel @Inject constructor(
|
|||
.setShortName(if (hasShortName()) shortName else it.shortName)
|
||||
.setIsLicensed(it.isLicensed)
|
||||
.build()
|
||||
if (it != user) setOwner(user)
|
||||
setOwner(user)
|
||||
}
|
||||
if (hasChannelUrl()) try {
|
||||
setChannels(channelUrl)
|
||||
|
|
@ -389,6 +389,9 @@ class RadioConfigViewModel @Inject constructor(
|
|||
setConfig(newConfig)
|
||||
}
|
||||
}
|
||||
if (hasFixedPosition()) {
|
||||
setFixedPosition(myNodeNum!!, Position(fixedPosition))
|
||||
}
|
||||
if (hasModuleConfig()) {
|
||||
val descriptor = ModuleConfigProtos.ModuleConfig.getDescriptor()
|
||||
moduleConfig.allFields.forEach { (field, value) ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue