From 5bc9834b74140e06d96221ed087f78b1d8e5d571 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Wed, 21 Jan 2015 17:50:43 +0100 Subject: [PATCH] - client updates internal ctlVal on operate and SBOw, and opertime on operate --- src/iec61850/client/client_control.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/iec61850/client/client_control.c b/src/iec61850/client/client_control.c index 9a24e2f1..dc662a84 100644 --- a/src/iec61850/client/client_control.c +++ b/src/iec61850/client/client_control.c @@ -423,6 +423,9 @@ ControlObjectClient_operate(ControlObjectClient self, MmsValue* ctlVal, uint64_t goto exit_function; } + MmsValue_update(self->ctlVal, ctlVal); + self->opertime = operTime; + success = true; exit_function: @@ -503,6 +506,8 @@ ControlObjectClient_selectWithValue(ControlObjectClient self, MmsValue* ctlVal) return false; } + MmsValue_update(self->ctlVal, ctlVal); + return true; }