mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: import DeviceProfile Config descriptor
This commit is contained in:
parent
300904d337
commit
888c1aec6d
1 changed files with 2 additions and 2 deletions
|
|
@ -338,7 +338,7 @@ class RadioConfigViewModel @Inject constructor(
|
|||
setResponseStateError(ex.customMessage)
|
||||
}
|
||||
if (hasConfig()) {
|
||||
val descriptor = config.descriptorForType
|
||||
val descriptor = ConfigProtos.Config.getDescriptor()
|
||||
config.allFields.forEach { (field, value) ->
|
||||
val newConfig = ConfigProtos.Config.newBuilder()
|
||||
.setField(descriptor.findFieldByName(field.name), value)
|
||||
|
|
@ -347,7 +347,7 @@ class RadioConfigViewModel @Inject constructor(
|
|||
}
|
||||
}
|
||||
if (hasModuleConfig()) {
|
||||
val descriptor = moduleConfig.descriptorForType
|
||||
val descriptor = ModuleConfigProtos.ModuleConfig.getDescriptor()
|
||||
moduleConfig.allFields.forEach { (field, value) ->
|
||||
val newConfig = ModuleConfigProtos.ModuleConfig.newBuilder()
|
||||
.setField(descriptor.findFieldByName(field.name), value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue