mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Disable the "set default channel" button if already on the default channel
This commit is contained in:
parent
8f32c39c5f
commit
10d6537972
3 changed files with 7 additions and 2 deletions
|
|
@ -78,6 +78,10 @@ data class Channel(
|
|||
|
||||
return "#${name}-${suffix}"
|
||||
}
|
||||
|
||||
override fun equals(o: Any?): Boolean = (o is Channel)
|
||||
&& psk.toByteArray() contentEquals o.psk.toByteArray()
|
||||
&& name == o.name
|
||||
}
|
||||
|
||||
fun xorHash(b: ByteArray) = b.fold(0, { acc, x -> acc xor (x.toInt() and 0xff) })
|
||||
Loading…
Add table
Add a link
Reference in a new issue