Skip to content

Commit

Permalink
fix json write value extraction for duplicated parameter names
Browse files Browse the repository at this point in the history
fixes #102
  • Loading branch information
zivillian committed Mar 23, 2024
1 parent ac1fe7d commit 57c6c4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ism7mqtt/ISM7/Ism7Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ public bool TryGetWriteValue(JsonNode node, out string value)
{
if (node is not JsonObject jobject) return false;
if (!jobject.TryGetPropertyValue(_descriptor.PTID.ToString(), out node)) return false;
value = node is JsonValue ? node.AsValue().ToString() : null;
}
if (_descriptor is ListParameterDescriptor listDescriptor)
{
Expand Down

0 comments on commit 57c6c4f

Please sign in to comment.