mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
update protos
This commit is contained in:
parent
4f8163c4a8
commit
55d4d769f8
3 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue