mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Defaults
This commit is contained in:
parent
382402afa9
commit
d5ce82347e
1 changed files with 2 additions and 2 deletions
|
|
@ -13,9 +13,9 @@ extension NodeInfoEntity {
|
|||
userProto.id = user.userId ?? ""
|
||||
userProto.longName = user.longName ?? ""
|
||||
userProto.shortName = user.shortName ?? ""
|
||||
userProto.hwModel = HardwareModel(rawValue: Int(user.hwModelId)) ?? .unknown
|
||||
userProto.hwModel = HardwareModel(rawValue: Int(user.hwModelId)) ?? .unset
|
||||
userProto.isLicensed = user.isLicensed
|
||||
userProto.role = Config.DeviceConfig.Role(rawValue: Int(user.role)) ?? .unknown
|
||||
userProto.role = Config.DeviceConfig.Role(rawValue: Int(user.role)) ?? .client
|
||||
userProto.publicKey = user.publicKey?.subdata(in: 0..<user.publicKey!.count) ?? Data()
|
||||
}
|
||||
var node = NodeInfo()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue