Skip to content

Commit

Permalink
Fix iec61850 direct boolean control wrongly sent in duplicity.
Browse files Browse the repository at this point in the history
  • Loading branch information
riclolsen committed May 13, 2024
1 parent e470c92 commit aa59398
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/libiec61850/dotnet/core/2.0/iec61850_client/MongoCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,18 +262,17 @@ await collection
{
case MmsType.MMS_BOOLEAN:
if (control.Operate(ic.value != 0))
if (control.Operate(ic.value != 0))
{
okres = true;
Log(srv.name + " Operated successfully!");
}
else
{
okres = false;
Log(srv.name + " Operate failed!");
Log(srv.name + " Error: " + control.GetLastApplError().error);
Log(srv.name + " Addit.Cause: " + control.GetLastApplError().addCause);
}
{
okres = true;
Log(srv.name + " Operated successfully!");
}
else
{
okres = false;
Log(srv.name + " Operate failed!");
Log(srv.name + " Error: " + control.GetLastApplError().error);
Log(srv.name + " Addit.Cause: " + control.GetLastApplError().addCause);
}
break;
case MmsType.MMS_UNSIGNED:
case MmsType.MMS_INTEGER:
Expand Down

0 comments on commit aa59398

Please sign in to comment.