Skip to content

Commit

Permalink
Update Clima for GNSS API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianstevens committed Jun 19, 2024
1 parent 4c2e87e commit 2bc8277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Meadow.Clima/Controllers/LocationController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ private void GnssVtgReceived(object _, CourseOverGround e)

private void GnssRmcReceived(object _, GnssPositionInfo e)
{
if (e.Valid)
if (e.Position is not null)
{
Resolver.Log.InfoIf(LogData, $"GNSS Position: lat: [{e.Position.Latitude}], long: [{e.Position.Longitude}]");
}
}

private void GnssGllReceived(object _, GnssPositionInfo e)
{
if (e.Valid)
if (e.Position is not null)
{
Resolver.Log.InfoIf(LogData, $"GNSS Position: lat: [{e.Position.Latitude}], long: [{e.Position.Longitude}]");
}
Expand Down

0 comments on commit 2bc8277

Please sign in to comment.