Changed FrostedSerialPort to IFrostedSerialPort

This commit is contained in:
larsbrubaker 2014-03-31 22:15:46 -07:00
parent d55e030390
commit 2a4a6348d5

View file

@ -218,7 +218,7 @@ namespace MatterHackers.MatterControl
double targetBedTemperature;
string printJobDisplayName = null;
GCodeFile loadedGCode = new GCodeFile();
FrostedSerialPort serialPort;
IFrostedSerialPort serialPort;
Thread readFromPrinterThread;
Thread connectThread;
@ -1224,7 +1224,7 @@ namespace MatterHackers.MatterControl
if (serialPortIsAvailable && !serialPortIsAlreadyOpen)
{
serialPort = new FrostedSerialPort(serialPortName);
serialPort = FrostedSerialPort.Create(serialPortName);
serialPort.BaudRate = baudRate;
//serialPort.Parity = Parity.None;
//serialPort.DataBits = 8;