mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-04-06 15:04:34 +00:00
Fixed code analyzer issues
This commit is contained in:
parent
8dc9068498
commit
376014e385
3 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue