Skip to content

Commit ae7dd4f

Browse files
Merge pull request #478 from GridProtectionAlliance/minor-selcws-updates
Minor updates to SEL CWS
2 parents 63387df + 7ffb024 commit ae7dd4f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Source/Libraries/GSF.PhasorProtocols/SelCWS/CommonFrameHeader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public override FrameType TypeID
142142
/// <summary>
143143
/// Gets the nominal <see cref="LineFrequency"/> of the SEL CWS device.
144144
/// </summary>
145-
public LineFrequency NominalFrequency { get; set; }
145+
public LineFrequency NominalFrequency { get; init; }
146146

147147
/// <summary>
148148
/// Gets the fundamental frame type of this frame.

Source/Libraries/GSF.PhasorProtocols/SelCWS/FrameParser.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public override void Start()
255255
// We narrow down parsing types to just those needed...
256256
base.Start([typeof(ConfigurationFrame), typeof(DataFrame)]);
257257

258-
// Make sure we mark stream an initialized even though base class doesn't think we use sync-bytes
258+
// Make sure we mark stream as uninitialized even though base class doesn't think we use sync-bytes
259259
StreamInitialized = false;
260260
}
261261

@@ -363,7 +363,7 @@ protected override int ParseFrame(byte[] buffer, int offset, int length)
363363
if (buffer[offset] != (byte)FrameType.DataFrame || m_initialDataFrame is null)
364364
return parsedLength;
365365

366-
// Ensure static nanosecond frame distribution is initialized
366+
// Ensure nanosecond frame distribution is initialized
367367
m_nanosecondPacketFrameOffsets ??= CalculateNanosecondPacketFrameOffsets(FramesPerPacket);
368368

369369
// Move offset past initial data frame which includes 64-bit nanosecond timestamp

0 commit comments

Comments
 (0)