Skip to content

Commit

Permalink
Fix MavLink Connection Timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurPatriot authored and meee1 committed Jan 9, 2025
1 parent e6bfc67 commit 91c890e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExtLibs/ArduPilot/Mavlink/MAVLinkInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ private void OpenBg(IProgressReporterDialogue PRsender, bool getparams)
var countDown = new Timer {Interval = 1000, AutoReset = false};
countDown.Elapsed += (sender, e) =>
{
int secondsRemaining = (deadline - e.SignalTime).Seconds;
int secondsRemaining = Convert.ToInt32((deadline - e.SignalTime).TotalSeconds);
frmProgressReporter.UpdateProgressAndStatus(-1, string.Format(Strings.Trying, secondsRemaining));
if (secondsRemaining > 0) countDown.Start();
};
Expand Down

0 comments on commit 91c890e

Please sign in to comment.