fix #209. don't ignore messages from nodes that only have partial nodeinfo

This commit is contained in:
Kevin Hester 2021-02-08 11:22:15 +08:00
parent 5deddf6547
commit 65e91c46d3
4 changed files with 58 additions and 36 deletions

View file

@ -126,6 +126,11 @@ data class DataPacket(
/** The Node ID for the local node - used for from when sender doesn't know our local node ID */
const val ID_LOCAL = "^local"
/// special broadcast address
const val NODENUM_BROADCAST = (0xffffffff).toInt()
fun nodeNumToDefaultId(n: Int): String = "!%08x".format(n)
override fun createFromParcel(parcel: Parcel): DataPacket {
return DataPacket(parcel)
}