Skip to content

Commit

Permalink
Merge pull request #549 from AgOpenGPS-Official/SixSixBugFix2
Browse files Browse the repository at this point in the history
Six six bug fix2
  • Loading branch information
farmerbriantee authored Jan 7, 2025
2 parents b3cecc7 + 7331fd1 commit c2aa9d7
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 67 deletions.
1 change: 1 addition & 0 deletions SourceCode/GPS/AgOpenGPS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,7 @@
<EmbeddedResource Include="Culture\gStr.zh-CHS.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>gStr.zh-CHS.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
Expand Down
9 changes: 8 additions & 1 deletion SourceCode/GPS/Forms/FormGPS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,14 @@ private void FormGPS_FormClosing(object sender, FormClosingEventArgs e)

SaveFormGPSWindowSettings();

Log.EventWriter("Missed Sentence Counter Total: " + missedSentenceCount.ToString());
double minutesSinceStart = ((DateTime.Now - Process.GetCurrentProcess().StartTime).TotalSeconds)/60;
if (minutesSinceStart < 1)
{
minutesSinceStart = 1;
}

Log.EventWriter("Missed Sentence Counter Total: " + missedSentenceCount.ToString()
+ " Missed Per Minute: " + ((double)missedSentenceCount/minutesSinceStart).ToString("N4"));

Log.EventWriter("Program Exit: " + DateTime.Now.ToString("f", CultureInfo.CreateSpecificCulture(RegistrySettings.culture)) + "\r");

Expand Down
2 changes: 0 additions & 2 deletions SourceCode/GPS/Forms/GUI.Designer.cs

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

65 changes: 14 additions & 51 deletions SourceCode/GPS/Forms/Settings/FormConfig.Designer.cs

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

10 changes: 0 additions & 10 deletions SourceCode/GPS/Properties/Resources.Designer.cs

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

3 changes: 0 additions & 3 deletions SourceCode/GPS/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@
<data name="Play" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\btnImages\Play.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ConD_LogNMEA" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\btnImages\Config\ConD_LogNMEA.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="BoundaryCenter" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\btnImages\BoundaryCenter.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
Expand Down
Binary file removed SourceCode/GPS/btnImages/Config/ConD_LogNMEA.png
Binary file not shown.

0 comments on commit c2aa9d7

Please sign in to comment.