Skip to content

Commit

Permalink
Merge pull request #14 from eklynx/Paused_IncompleteData_Message
Browse files Browse the repository at this point in the history
Added message when foreflight sending is paused due to incomplete data.
  • Loading branch information
eklynx authored Sep 19, 2020
2 parents 3c52d1d + bd6957e commit cbe0432
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 84 deletions.
6 changes: 3 additions & 3 deletions SimForeflightLink/Foreflight/ForeFlightSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void Stop()

protected void SendGps()
{
if (VerifyFlightData(FlightData) && null != EndPoint)
if (VerifyCompleteFlightData(FlightData) && null != EndPoint)
{
string gpsString = string.Format(
GPS_MESSAGE_FORMAT,
Expand All @@ -86,7 +86,7 @@ protected void SendGps()

protected void SendAttiude()
{
if (VerifyFlightData(FlightData) && null != EndPoint)
if (VerifyCompleteFlightData(FlightData) && null != EndPoint)
{
string attitudeString = string.Format(
ATTITUDE_MESSAGE_FORMAT,
Expand Down Expand Up @@ -115,7 +115,7 @@ virtual protected void Send(string message)
}
}

protected static bool VerifyFlightData(FlightData flightData)
public static bool VerifyCompleteFlightData(FlightData flightData)
{
if (null == flightData.AltitudeFt)
return false;
Expand Down
131 changes: 59 additions & 72 deletions SimForeflightLink/SimForeflightLink.Designer.cs

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

Loading

0 comments on commit cbe0432

Please sign in to comment.