sforkowany z mirror/meshtastic-android
add waypoint payload parser
rodzic
d2140b13cb
commit
9c6a42e5c2
|
@ -55,6 +55,12 @@ data class DataPacket(
|
|||
else
|
||||
null
|
||||
|
||||
val waypoint: MeshProtos.Waypoint?
|
||||
get() = if (dataType == Portnums.PortNum.WAYPOINT_APP_VALUE)
|
||||
MeshProtos.Waypoint.parseFrom(bytes)
|
||||
else
|
||||
null
|
||||
|
||||
// Autogenerated comparision, because we have a byte array
|
||||
|
||||
constructor(parcel: Parcel) : this(
|
||||
|
|
Ładowanie…
Reference in New Issue