Permalink
Browse files

Fix baudrate error: baudrate was not set when opening port. Reformat …

…window.
  • Loading branch information...
NiceCircuits committed Nov 19, 2015
1 parent 6fcdb46 commit ada9586b7d5560561a3a1fcfd49638e22d02faff
Showing with 135 additions and 17 deletions.
  1. BIN DualTerminal.suo
  2. +134 −17 DualTerminal/Form1.Designer.cs
  3. +1 −0 DualTerminal/Form1.cs
View
Binary file not shown.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -92,6 +92,7 @@ private void openToolStripMenuItem_Click(object sender=null, EventArgs e=null)
{
serialPort1.PortName = toolStripComboBoxPort1.SelectedItem.ToString();
serialPort2.PortName = toolStripComboBoxPort2.SelectedItem.ToString();
serialPort1.BaudRate = Int32.Parse(toolStripComboBoxBaud.SelectedItem.ToString());
serialPort1.Open();
serialPort2.Open();
openToolStripMenuItem.Enabled = false;

0 comments on commit ada9586

Please sign in to comment.