From 7e8eca243121ea7dc2a3de31f4b51700b033f2a6 Mon Sep 17 00:00:00 2001 From: Moshe Gutman Date: Wed, 29 Jul 2020 19:10:20 -0500 Subject: [PATCH] Fix baud rate for IProgress in FindPort (#71) IProgress was showing `port.BaudRate` instead of `baud` the baud rate currently being tested. --- src/SampleApp.WinDesktop/MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SampleApp.WinDesktop/MainWindow.xaml.cs b/src/SampleApp.WinDesktop/MainWindow.xaml.cs index d29ca10..a82c648 100644 --- a/src/SampleApp.WinDesktop/MainWindow.xaml.cs +++ b/src/SampleApp.WinDesktop/MainWindow.xaml.cs @@ -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;