Skip to content

Commit

Permalink
Fixed issue with XML output of SensorConfiguration.Channels
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickRitchie committed Oct 25, 2023
1 parent 7076930 commit 5266009
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MTConnect.NET-XML/Devices/XmlSensorConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,14 @@ public static void WriteXml(XmlWriter writer, ISensorConfiguration sensorConfigu
// Write Channels
if (!sensorConfiguration.Channels.IsNullOrEmpty())
{
writer.WriteStartElement("Channels");

foreach (var channel in sensorConfiguration.Channels)
{
XmlChannel.WriteXml(writer, channel);
}

writer.WriteEndElement();
}

writer.WriteEndElement();
Expand Down

0 comments on commit 5266009

Please sign in to comment.