From aa9c8bd8a325be477c686600a235463dedd6136f Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Sat, 12 Oct 2024 06:15:17 -0700 Subject: [PATCH] set destination node num properly --- Meshtastic/Helpers/BLEManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meshtastic/Helpers/BLEManager.swift b/Meshtastic/Helpers/BLEManager.swift index 88b6fc1c..b128f032 100644 --- a/Meshtastic/Helpers/BLEManager.swift +++ b/Meshtastic/Helpers/BLEManager.swift @@ -888,7 +888,7 @@ class BLEManager: NSObject, CBPeripheralDelegate, MqttClientProxyManagerDelegate destinationHop.name = traceRoute?.node?.user?.longName ?? "unknown".localized destinationHop.time = Date() destinationHop.snr = traceRoute?.snr ?? 0.0 - destinationHop.num = connectedPeripheral.num + destinationHop.num = traceRoute?.node?.num ?? 0 if let mostRecent = traceRoute?.node?.positions?.lastObject as? PositionEntity, mostRecent.time! >= Calendar.current.date(byAdding: .hour, value: -24, to: Date())! { destinationHop.altitude = mostRecent.altitude destinationHop.latitudeI = mostRecent.latitudeI