If we can't find a baud rate then start with 250000.

This commit is contained in:
Lars Brubaker 2015-02-09 11:22:39 -08:00
parent 37b1bfa492
commit 72a509e5e2

View file

@ -1446,12 +1446,15 @@ namespace MatterHackers.MatterControl.PrinterCommunication
{
get
{
int baudRate = 0;
int baudRate = 250000;
if (this.ActivePrinter != null)
{
try
{
baudRate = Convert.ToInt32(this.ActivePrinter.BaudRate);
if (this.ActivePrinter.BaudRate != null)
{
baudRate = Convert.ToInt32(this.ActivePrinter.BaudRate);
}
}
catch
{