Skip to content

Commit 37d3780

Browse files
committed
Serial Port Pin Puller minor changes
1 parent 906e61c commit 37d3780

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Components/SerialPorts/SerialPortPinPuller.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ private void OnPipelineRun(object? sender, PipelineRunEventArgs args) {
8989
Debug.Assert(!_port.DtrEnable);
9090
if (PullUpDtrOnStart) {
9191
_port.DtrEnable = true;
92-
var timestamp = DtrUseSourceOriginatingTime ? args.StartOriginatingTime : DateTime.UtcNow;
92+
var timestamp = DtrUseSourceOriginatingTime ? args.StartOriginatingTime : DtrOut.Pipeline.GetCurrentTime();
9393
DtrOut.Post(true, timestamp);
9494
}
9595

9696
Debug.Assert(!_port.RtsEnable);
9797
if (PullUpRtsOnStart) {
9898
_port.RtsEnable = true;
99-
var timestamp = RtsUseSourceOriginatingTime ? args.StartOriginatingTime : DateTime.UtcNow;
99+
var timestamp = RtsUseSourceOriginatingTime ? args.StartOriginatingTime : RtsOut.Pipeline.GetCurrentTime();
100100
RtsOut.Post(true, timestamp);
101101
}
102102
}

Components/SerialPorts/SerialPortPinPullerMetadata.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class SerialPortPinPullerMetadata : ConventionalComponentMetadata {
77

88
public override string Name => "Serial Port DTR/RTS Pin Puller";
99

10-
public override string Description => "Open a Serial Port and drive its DTR/RTS pin.";
10+
public override string Description => "Drive a Serial Port's DTR/RTS pin.";
1111

1212
protected override Type ComponentType => typeof(SerialPortPinPuller);
1313

0 commit comments

Comments
 (0)