mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor(config): move business logic to ViewModel
This commit is contained in:
parent
e8b0f1584b
commit
7869243290
8 changed files with 354 additions and 323 deletions
|
|
@ -51,14 +51,4 @@ data class MeshLog(@PrimaryKey val uuid: String,
|
|||
return null
|
||||
} ?: nodeInfo?.position
|
||||
}
|
||||
|
||||
val routeDiscovery: MeshProtos.RouteDiscovery?
|
||||
get() {
|
||||
return meshPacket?.run {
|
||||
if (hasDecoded() && decoded.portnumValue == Portnums.PortNum.TRACEROUTE_APP_VALUE) {
|
||||
return MeshProtos.RouteDiscovery.parseFrom(decoded.payload)
|
||||
}
|
||||
return null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue