Merge pull request #269 from zjs81/dev-latLonFix

Changed contacts latitude and longitude fields to be null until parsed and set
chore/offband-rebrand
zjs81 5 months ago committed by GitHub
commit a1b77bb29b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1949,6 +1949,8 @@ class MeshCoreConnector extends ChangeNotifier {
type: contact.type,
pathLength: contact.pathLength,
path: contact.path,
latitude: contact.latitude,
longitude: contact.longitude,
lastSeen: DateTime.now(),
),
);
@ -4345,8 +4347,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;
@ -4406,8 +4408,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);

Loading…
Cancel
Save

Powered by TurnKey Linux.