]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Model/src/exclusa.cpp
Se agrega docs de instalaciĆ³n.
[z.facultad/75.42/plaqui.git] / Model / src / exclusa.cpp
index 6e76c66a13e674337c5f1f7900250dca2899055a..89554f858ccf61117bc22b07a852ea3800a36e74 100644 (file)
@@ -44,11 +44,13 @@ void Exclusa::recieve_msg(int msg, IConector *who, void *data)
        switch (msg) {
                case MSG_QUERY_MAX_FLOW_OUT:
                        temp = *((float *)data);
+                       if (!is_open) temp = 0;
                        send_msg(OUT, MSG_QUERY_MAX_FLOW_OUT, &temp);
                        who->recieve_msg(MSG_RESPONSE_MAX_FLOW, this, &temp);
                break;
                case MSG_RESPONSE_MAX_FLOW:
-                       temp = *((float *)data);
+                       if (is_open)
+                               temp = *((float *)data);
                break;
                default:
                        Control::recieve_msg(msg, who, data);