Update SerialPort.cs
This commit is contained in:
parent
80af3469f4
commit
51033e2ae0
@ -44,18 +44,12 @@ public partial class SerialPort : IDisposable
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
/// <summary>
|
|
||||||
/// Class constructor
|
|
||||||
/// </summary>
|
|
||||||
public SerialPort(string portName, int baudRate) : this(portName)
|
public SerialPort(string portName, int baudRate) : this(portName)
|
||||||
{
|
{
|
||||||
BaudRate = baudRate;
|
BaudRate = baudRate;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
/// <summary>
|
|
||||||
/// For IDisposable
|
|
||||||
/// </summary>
|
|
||||||
public void Dispose()
|
public void Dispose()
|
||||||
{
|
{
|
||||||
Close();
|
Close();
|
||||||
|
Loading…
Reference in New Issue
Block a user