Skip to content

Commit

Permalink
Merge pull request #961 from bjpetit/dev
Browse files Browse the repository at this point in the history
Add missing timestamps to TraceRoute data structures
  • Loading branch information
garthvh authored Oct 10, 2024
2 parents 4ce03d2 + 4508d12 commit fe5013b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Meshtastic/Helpers/BLEManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@ class BLEManager: NSObject, CBPeripheralDelegate, MqttClientProxyManagerDelegate
hopNode = createNodeInfo(num: Int64(node), context: context)
}
let traceRouteHop = TraceRouteHopEntity(context: context)
traceRouteHop.time = Date()
if routingMessage.snrTowards.count >= index + 1 {
traceRouteHop.snr = Float(routingMessage.snrTowards[index] / 4)
}
Expand Down Expand Up @@ -910,6 +911,7 @@ class BLEManager: NSObject, CBPeripheralDelegate, MqttClientProxyManagerDelegate
traceRoute?.routeText = routeString
traceRoute?.routeBackText = routeBackString
traceRoute?.hops = NSOrderedSet(array: hopNodes)
traceRoute?.time = Date()
do {
try context.save()
Logger.data.info("💾 Saved Trace Route")
Expand Down

0 comments on commit fe5013b

Please sign in to comment.