From 9beccc163988e5aa37cb69cad855866ab73b1e28 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Mon, 8 Apr 2024 10:59:38 -0700 Subject: [PATCH] fix delete waypoint bugs --- Meshtastic/Views/Nodes/Helpers/Map/WaypointForm.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Meshtastic/Views/Nodes/Helpers/Map/WaypointForm.swift b/Meshtastic/Views/Nodes/Helpers/Map/WaypointForm.swift index 446ed2c0..0869ff2b 100644 --- a/Meshtastic/Views/Nodes/Helpers/Map/WaypointForm.swift +++ b/Meshtastic/Views/Nodes/Helpers/Map/WaypointForm.swift @@ -195,8 +195,8 @@ struct WaypointForm: View { newWaypoint.id = UInt32(waypoint.id) newWaypoint.name = name.count > 0 ? name : "Dropped Pin" newWaypoint.description_p = description - newWaypoint.latitudeI = waypoint.longitudeI - newWaypoint.longitudeI = waypoint.latitudeI + newWaypoint.latitudeI = waypoint.latitudeI + newWaypoint.longitudeI = waypoint.longitudeI // Unicode scalar value for the icon emoji string let unicodeScalers = icon.unicodeScalars // First element as an UInt32 @@ -209,7 +209,7 @@ struct WaypointForm: View { newWaypoint.lockedTo = UInt32(lockedTo) } } - newWaypoint.expire = UInt32(expire.timeIntervalSince1970) + newWaypoint.expire = UInt32(1) if bleManager.sendWaypoint(waypoint: newWaypoint) { bleManager.context!.delete(waypoint)