mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-01-20 15:40:16 +01:00
Fix baud rate for IProgress in FindPort (#71)
IProgress was showing `port.BaudRate` instead of `baud` the baud rate currently being tested.
This commit is contained in:
parent
0bc0c28fba
commit
7e8eca2431
|
|
@ -205,7 +205,7 @@ namespace SampleApp.WinDesktop
|
|||
{
|
||||
|
||||
if (progress != null)
|
||||
progress.Report(string.Format("Trying {0} @ {1}baud", portName, port.BaudRate));
|
||||
progress.Report(string.Format("Trying {0} @ {1}baud", portName, baud));
|
||||
port.BaudRate = baud;
|
||||
port.ReadTimeout = 2000; //this might not be long enough
|
||||
bool success = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue