Skip to content

Commit

Permalink
Disable call to TryBaudRate as it does not work in KSP
Browse files Browse the repository at this point in the history
  • Loading branch information
djungelorm committed Sep 19, 2017
1 parent 354c7be commit cf9000b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SerialPortStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ public SerialPortStream (string portName, int baudRate, int dataBits, Parity par
fd = open_serial (portName);
if (fd == -1)
ThrowIOException ();

TryBaudRate (baudRate);

// The following is disabled as it does not work with KSPs version of Mono.
//TryBaudRate (baudRate);

if (!set_attributes (fd, baudRate, parity, dataBits, stopBits, handshake))
ThrowIOException (); // Probably Win32Exc for compatibility
Expand Down

0 comments on commit cf9000b

Please sign in to comment.