Merge pull request #400 from meshtastic/bugfix278

insert sent messages in Packet
This commit is contained in:
Andre Kirchhoff 2022-03-29 11:07:23 -03:00 committed by GitHub
commit 2965738fcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {