コード例 #1
0
 internal CSharpSerialPortWrapper(string serialPortName)
 {
     if (FrostedSerialPortFactory.GetAppropriateFactory("RepRap").IsWindows)
     {
         try
         {
             SerialPortFixer.Execute(serialPortName);
         }
         catch (Exception)
         {
         }
     }
     port = new System.IO.Ports.SerialPort(serialPortName);
 }
コード例 #2
0
 internal CSharpSerialPortWrapper(string serialPortName)
 {
     if (FrostedSerialPortFactory.Instance.IsWindows)
     {
         try
         {
             SerialPortFixer.Execute(serialPortName);
         }
         catch (Exception)
         {
         }
     }
     port = new System.IO.Ports.SerialPort(serialPortName);
 }