From 84ec139ce698ddb9e5ce6f3fbac9b31b50ed4800 Mon Sep 17 00:00:00 2001 From: Winston Lowe Date: Sat, 7 Mar 2026 11:02:47 -0800 Subject: [PATCH] Add latitude and longitude fields to contact handling in MeshCoreConnector --- lib/connector/meshcore_connector.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/connector/meshcore_connector.dart b/lib/connector/meshcore_connector.dart index 7aa0e5d..af18b2c 100644 --- a/lib/connector/meshcore_connector.dart +++ b/lib/connector/meshcore_connector.dart @@ -1572,6 +1572,8 @@ class MeshCoreConnector extends ChangeNotifier { type: contact.type, pathLength: contact.pathLength, path: contact.path, + latitude: contact.latitude, + longitude: contact.longitude, lastSeen: DateTime.now(), ), ); @@ -3890,8 +3892,8 @@ class MeshCoreConnector extends ChangeNotifier { appLogger.warn('Malformed RX frame: $e', tag: 'Connector'); return; } - double latitude = 0.0; - double longitude = 0.0; + double? latitude; + double? longitude; String name = ''; Uint8List publicKey = Uint8List(0); int type = 0; @@ -3951,8 +3953,8 @@ class MeshCoreConnector extends ChangeNotifier { double snr, ) { final advert = BufferReader(payload); - double latitude = 0.0; - double longitude = 0.0; + double? latitude; + double? longitude; String name = ''; String contactKeyHex = ''; Uint8List publicKey = Uint8List(0);