Updated docs
This commit is contained in:
		@@ -56,9 +56,9 @@ public partial class SerialPort : IDisposable
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /// <summary>
 | 
					    /// <summary>
 | 
				
			||||||
    ///     Opens the com port and configures it with the required settings
 | 
					    ///     Opens the com port and configures it with the required settings.
 | 
				
			||||||
    /// </summary>
 | 
					    /// </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()
 | 
					    public bool Open()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        DCB portDcb = new();
 | 
					        DCB portDcb = new();
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,5 @@
 | 
				
			|||||||
using System;
 | 
					using System;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
using Nefarius.Peripherals.SerialPort;
 | 
					using Nefarius.Peripherals.SerialPort;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace PInvokeSerialPort.Sample;
 | 
					namespace PInvokeSerialPort.Sample;
 | 
				
			||||||
@@ -7,7 +8,7 @@ internal class Program
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    private static void Main(string[] args)
 | 
					    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 =>
 | 
					        serialPort.DataReceived += x =>
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user