mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-03-16 12:59:00 -04:00
Merge pull request #400 from meshtastic/bugfix278
insert sent messages in Packet
This commit is contained in:
@@ -938,6 +938,16 @@ 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 = Packet(
|
||||
UUID.randomUUID().toString(),
|
||||
"packet",
|
||||
System.currentTimeMillis(),
|
||||
packet.toString()
|
||||
)
|
||||
insertPacket(packetToSave)
|
||||
}
|
||||
}
|
||||
|
||||
private fun processQueuedPackets() {
|
||||
|
||||
Reference in New Issue
Block a user