Updated docs
This commit is contained in:
		@@ -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();
 | 
			
		||||
 
 | 
			
		||||
@@ -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 =>
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user