Skip to content

Commit

Permalink
Fixed an issue with GPS time
Browse files Browse the repository at this point in the history
  • Loading branch information
Dag Robole committed Jan 24, 2020
1 parent da36291 commit 924fca5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions About.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions About.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,10 @@ public string AssemblyCompany
}
}
#endregion

private void okButton_Click(object sender, EventArgs e)
{

}
}
}
2 changes: 1 addition & 1 deletion Spectrum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public Spectrum(burn.ProtocolMessage msg)
LongitudeError = Convert.ToDouble(msg.Params["longitude_error"], CultureInfo.InvariantCulture);
Altitude = Convert.ToDouble(msg.Params["altitude"], CultureInfo.InvariantCulture);
AltitudeError = Convert.ToDouble(msg.Params["altitude_error"], CultureInfo.InvariantCulture);
if(msg.Params["time"] == null || String.IsNullOrEmpty(msg.Params["time"].ToString().Trim()) || (Latitude == 0d && Longitude == 0d))
if(msg.Params["time"] == null || String.IsNullOrEmpty(msg.Params["time"].ToString().Trim()))
GpsTime = new DateTime(1900, 1, 1, 1, 1, 1);
else
GpsTime = Convert.ToDateTime(msg.Params["time"]);
Expand Down

0 comments on commit 924fca5

Please sign in to comment.