From a6d287ee8026313c90763c5d14e99d0ed7ecb118 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Thu, 24 Feb 2022 08:28:08 -1000 Subject: [PATCH] Remove debug code --- MeshtasticClient/Helpers/BLEManager.swift | 11 ----------- MeshtasticClient/Helpers/LocationHelper.swift | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/MeshtasticClient/Helpers/BLEManager.swift b/MeshtasticClient/Helpers/BLEManager.swift index 8ed430d1..1a3831d8 100644 --- a/MeshtasticClient/Helpers/BLEManager.swift +++ b/MeshtasticClient/Helpers/BLEManager.swift @@ -891,17 +891,6 @@ class BLEManager: NSObject, ObservableObject, CBCentralManagerDelegate, CBPeriph // MARK: Incoming ROUTING_APP Packet } else if decodedInfo.packet.decoded.portnum == PortNum.routingApp { - let currentNodeNum = self.connectedPeripheral.num - - if let routingMessage = try? Routing(serializedData: decodedInfo.packet.decoded.payload) { - print(decodedInfo.packet.decoded.requestID) - print(decodedInfo.packet.priority) - //let mes = routingMessage. - let error = routingMessage.errorReason - - //routingMessage.routeRequest - } - if decodedInfo.packet.priority == MeshPacket.Priority.ack { let fetchMessageRequest: NSFetchRequest = NSFetchRequest.init(entityName: "MessageEntity") diff --git a/MeshtasticClient/Helpers/LocationHelper.swift b/MeshtasticClient/Helpers/LocationHelper.swift index 7cea2ee3..3210680b 100644 --- a/MeshtasticClient/Helpers/LocationHelper.swift +++ b/MeshtasticClient/Helpers/LocationHelper.swift @@ -4,7 +4,7 @@ class LocationHelper: NSObject, ObservableObject { static let shared = LocationHelper() - // Apple Park ° N, 122.0090° W + // Apple Park static let DefaultLocation = CLLocationCoordinate2D(latitude: 37.3346, longitude: -122.0090) static let DefaultAltitude = CLLocationDistance(integerLiteral: 0)