add waypoint payload parser

master
andrekir 2022-09-09 22:15:27 -03:00
rodzic d2140b13cb
commit 9c6a42e5c2
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -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(