Added to Nuget, included bug fixes found along the way

This commit is contained in:
2025-09-27 09:25:52 -05:00
parent 13a3044bbf
commit 1129c6c4be
6 changed files with 127 additions and 24 deletions

View File

@@ -64,7 +64,7 @@ namespace GpsClient2 {
}
private void WatcherOnPositionChanged(object sender, GeoPositionChangedEventArgs<GeoCoordinate> e) {
if (_previousReadTime != null && GpsInfo.ReadFrequenty != 0 && e.Position.Timestamp.Subtract(new TimeSpan(0, 0, 0, 0, GpsInfo.ReadFrequenty)) <= _previousReadTime) return;
if (_previousReadTime != null && GpsInfo.ReadFrequency != 0 && e.Position.Timestamp.Subtract(new TimeSpan(0, 0, 0, 0, GpsInfo.ReadFrequency)) <= _previousReadTime) return;
OnGpsDataReceived(new GpsDataEventArgs(e.Position.Location));
_previousReadTime = e.Position.Timestamp;
}