Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1857 from xamarin/jamesmontemagno-patch-2
Browse files Browse the repository at this point in the history
Update LocationExtensions.ios.tvos.watchos.macos.cs
  • Loading branch information
jfversluis authored Jan 18, 2022
2 parents 198cb6b + b5d1dc7 commit 66d4a60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal static Location ToLocation(this CLLocation location) =>
Accuracy = location.HorizontalAccuracy,
VerticalAccuracy = location.VerticalAccuracy,
Timestamp = location.Timestamp.ToDateTime(),
#if __iOS__ || __WATCHOS__
#if __IOS__ || __WATCHOS__
Course = location.Course < 0 ? default(double?) : location.Course,
Speed = location.Speed < 0 ? default(double?) : location.Speed,
#endif
Expand Down

0 comments on commit 66d4a60

Please sign in to comment.