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

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