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:
Moshe Gutman 2020-07-29 19:10:20 -05:00 committed by GitHub
parent 0bc0c28fba
commit 7e8eca2431
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;