If we can't find a baud rate then start with 250000.
This commit is contained in:
parent
37b1bfa492
commit
72a509e5e2
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue