mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Added relays count (#3773)
Signed-off-by: Benjamin Faershtein <119711889+RCGV1@users.noreply.github.com> Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
0d00c838b0
commit
022652efe5
8 changed files with 18 additions and 3 deletions
|
|
@ -1326,6 +1326,9 @@ class MeshService : Service() {
|
|||
p.data.status = m
|
||||
p.routingError = routingError
|
||||
p.data.relayNode = relayNode
|
||||
if (isAck) {
|
||||
p.data.relays += 1
|
||||
}
|
||||
packetRepository.get().update(p)
|
||||
}
|
||||
serviceBroadcasts.broadcastMessageStatus(requestId, m)
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ import kotlin.time.Duration.Companion.seconds
|
|||
private const val RSSI_DELAY = 10
|
||||
private const val RSSI_TIMEOUT = 5
|
||||
|
||||
@Suppress("LongMethod", "LoopWithTooManyJumpStatements")
|
||||
@Composable
|
||||
fun CurrentlyConnectedInfo(
|
||||
node: Node,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue