From 51c59649e78ea81d88c52ca7a0f61d53e9ac83fe Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 20 Feb 2018 12:13:55 +0200 Subject: Working on developer module... --- .../Visual_Studio/Tango.Integration/Operators/MachineOperator.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs') diff --git a/Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs index eaa72541c..272bde432 100644 --- a/Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs @@ -66,7 +66,7 @@ namespace Tango.Integration.Operators /// if set to true [value]. protected virtual void OnEnableDiagnosticsChanged(bool value) { - if (value && State == TransportComponentState.Connected) + if (value && State == TransportComponentState.Connected && !_diagnosticsSent) { SendContinuousRequest(new TangoMessage(new PushDiagnosticsRequest() { @@ -117,6 +117,11 @@ namespace Tango.Integration.Operators { base.OnStateChanged(state); + if (state != TransportComponentState.Connected) + { + _diagnosticsSent = false; + } + OnEnableDiagnosticsChanged(EnableDiagnostics); } -- cgit v1.3.1