Updated docs

This commit is contained in:
Benjamin Höglinger-Stelzer 2024-07-13 15:53:59 +02:00
parent 51033e2ae0
commit f1abb93581
2 changed files with 4 additions and 3 deletions

View File

@ -56,9 +56,9 @@ public partial class SerialPort : IDisposable
}
/// <summary>
/// Opens the com port and configures it with the required settings
/// Opens the com port and configures it with the required settings.
/// </summary>
/// <returns>false if the port could not be opened</returns>
/// <returns>false if the port could not be opened due to missing permissions.</returns>
public bool Open()
{
DCB portDcb = new();

View File

@ -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 =>
{