update protos

This commit is contained in:
geeksville 2020-02-12 14:15:59 -08:00
parent 4f8163c4a8
commit 55d4d769f8
3 changed files with 6 additions and 6 deletions

View file

@ -70,13 +70,13 @@ data class NodeInfo(
val num: Int, // This is immutable, and used as a key
var user: MeshUser? = null,
var position: Position? = null,
var lastSeen: Long? = null
var lastSeen: Int? = null
) : Parcelable {
constructor(parcel: Parcel) : this(
parcel.readInt(),
parcel.readParcelable(MeshUser::class.java.classLoader),
parcel.readParcelable(Position::class.java.classLoader),
parcel.readValue(Long::class.java.classLoader) as? Long
parcel.readValue(Int::class.java.classLoader) as? Int
) {
}

View file

@ -377,7 +377,7 @@ class MeshService : Service(), Logging {
val p = packet.payload
// Update our last seen based on any valid timestamps
if (packet.rxTime != 0L) {
if (packet.rxTime != 0) {
updateNodeInfo(fromNum) {
it.lastSeen = packet.rxTime
}
@ -542,7 +542,7 @@ class MeshService : Service(), Logging {
}
override fun getRadioConfig(): ByteArray = toRemoteExceptions {
return connectedRadio.readRadioConfig()
connectedRadio.readRadioConfig()
}
override fun setRadioConfig(payload: ByteArray) = toRemoteExceptions {