mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: add NodeInfo channel to node list
This commit is contained in:
parent
f4a2100be9
commit
45d93a1d9a
1 changed files with 8 additions and 2 deletions
|
|
@ -256,8 +256,14 @@ class UsersFragment : ScreenFragment("Users"), Logging {
|
|||
holder.signalView.text = text
|
||||
holder.signalView.visibility = View.VISIBLE
|
||||
} else {
|
||||
if ((n.snr < 100f) && (n.rssi < 0)) {
|
||||
val text = "rssi:%d snr:%.1f".format(n.rssi, n.snr)
|
||||
val text = buildString {
|
||||
if (n.channel > 0) append("ch:${n.channel}")
|
||||
if (n.snr < 100f && n.rssi < 0) {
|
||||
if (isNotEmpty()) append(" ")
|
||||
append("rssi:%d snr:%.1f".format(n.rssi, n.snr))
|
||||
}
|
||||
}
|
||||
if (text.isNotEmpty()) {
|
||||
holder.signalView.text = text
|
||||
holder.signalView.visibility = View.VISIBLE
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue