mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix: move Packet log after radioInterfaceService.sendToRadio()
This commit is contained in:
parent
17a6e8cbc6
commit
5a07998b73
1 changed files with 10 additions and 10 deletions
|
|
@ -203,6 +203,16 @@ class MeshService : Service(), Logging {
|
|||
if (SoftwareUpdateService.isUpdating) throw IsUpdatingException()
|
||||
|
||||
radioInterfaceService.sendToRadio(b)
|
||||
|
||||
if (p.packet.hasDecoded()) {
|
||||
val packetToSave = MeshLog(
|
||||
UUID.randomUUID().toString(),
|
||||
"Packet",
|
||||
System.currentTimeMillis(),
|
||||
p.packet.toString()
|
||||
)
|
||||
insertMeshLog(packetToSave)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -779,16 +789,6 @@ class MeshService : Service(), Logging {
|
|||
p.time = System.currentTimeMillis() // update time to the actual time we started sending
|
||||
// debug("Sending to radio: ${packet.toPIIString()}")
|
||||
sendToRadio(packet)
|
||||
|
||||
if (packet.hasDecoded()) {
|
||||
val packetToSave = MeshLog(
|
||||
UUID.randomUUID().toString(),
|
||||
"Packet",
|
||||
System.currentTimeMillis(),
|
||||
packet.toString()
|
||||
)
|
||||
insertMeshLog(packetToSave)
|
||||
}
|
||||
}
|
||||
|
||||
private fun processQueuedPackets() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue