From 83bdcaf42a88e59e2ee45610d1cdc244eb9a97fa Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Fri, 13 Jan 2023 23:11:16 -0800 Subject: [PATCH] Random waypointid for now --- Meshtastic/Helpers/MeshPackets.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meshtastic/Helpers/MeshPackets.swift b/Meshtastic/Helpers/MeshPackets.swift index 10406180..fa8fee4b 100644 --- a/Meshtastic/Helpers/MeshPackets.swift +++ b/Meshtastic/Helpers/MeshPackets.swift @@ -1329,7 +1329,7 @@ func waypointPacket (packet: MeshPacket, context: NSManagedObjectContext) { if fetchedWaypoint.isEmpty { let waypoint = WaypointEntity(context: context) - waypoint.id = Int64(packet.id) + waypoint.id = Int64(UInt32.random(in: UInt32(UInt8.max)..