From f1abb9358104711254dba4015da35b084aec66f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=B6glinger-Stelzer?= Date: Sat, 13 Jul 2024 15:53:59 +0200 Subject: [PATCH] Updated docs --- Nefarius.Peripherals.SerialPort/SerialPort.cs | 4 ++-- PInvokeSerialPort.Sample/Program.cs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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 => {