diff --git a/Nefarius.Peripherals.SerialPort/SerialPort.cs b/Nefarius.Peripherals.SerialPort/SerialPort.cs index 0dac294..c51177f 100644 --- a/Nefarius.Peripherals.SerialPort/SerialPort.cs +++ b/Nefarius.Peripherals.SerialPort/SerialPort.cs @@ -56,9 +56,9 @@ public partial class SerialPort : IDisposable } /// - /// Opens the com port and configures it with the required settings + /// Opens the com port and configures it with the required settings. /// - /// false if the port could not be opened + /// false if the port could not be opened due to missing permissions. public bool Open() { DCB portDcb = new(); diff --git a/PInvokeSerialPort.Sample/Program.cs b/PInvokeSerialPort.Sample/Program.cs index 0d3358f..8ebda6f 100755 --- a/PInvokeSerialPort.Sample/Program.cs +++ b/PInvokeSerialPort.Sample/Program.cs @@ -1,4 +1,5 @@ using System; + using Nefarius.Peripherals.SerialPort; namespace PInvokeSerialPort.Sample; @@ -7,7 +8,7 @@ internal class Program { private static void Main(string[] args) { - var serialPort = new SerialPort("com7") { UseRts = HsOutput.Online }; + SerialPort serialPort = new SerialPort("com5") { UseRts = HsOutput.Online }; serialPort.DataReceived += x => {