mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-02-04 06:44:27 +01:00
Fixed code analyzer issues
This commit is contained in:
parent
8dc9068498
commit
376014e385
|
|
@ -61,6 +61,7 @@ namespace NmeaParser.Nmea.Gps
|
|||
/// <summary>
|
||||
/// RMS value of the pseudorange residuals; includes carrier phase residuals during periods of RTK (float) and RTK (fixed) processing
|
||||
/// </summary>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Rms")]
|
||||
public double Rms { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ namespace NmeaParser
|
|||
/// <summary>
|
||||
/// Gets the name of the nmea file this device is using.
|
||||
/// </summary>
|
||||
public string Filename
|
||||
public string FileName
|
||||
{
|
||||
get { return m_filename; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ namespace SampleApp.WinDesktop
|
|||
currentDevice.MessageReceived += device_MessageReceived;
|
||||
var _ = currentDevice.OpenAsync();
|
||||
if (device is NmeaParser.NmeaFileDevice)
|
||||
currentDeviceInfo.Text = string.Format("NmeaFileDevice( file={0} )", ((NmeaParser.NmeaFileDevice)device).Filename);
|
||||
currentDeviceInfo.Text = string.Format("NmeaFileDevice( file={0} )", ((NmeaParser.NmeaFileDevice)device).FileName);
|
||||
else if (device is NmeaParser.SerialPortDevice)
|
||||
{
|
||||
currentDeviceInfo.Text = string.Format("SerialPortDevice( port={0}, baud={1} )",
|
||||
|
|
@ -197,7 +197,6 @@ namespace SampleApp.WinDesktop
|
|||
}
|
||||
if (success)
|
||||
{
|
||||
port.Dispose();
|
||||
return new System.IO.Ports.SerialPort(portName, baud);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue