aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-02-20 12:13:55 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-02-20 12:13:55 +0200
commit51c59649e78ea81d88c52ca7a0f61d53e9ac83fe (patch)
tree02dddb61c74c624d44de4d0cce09323f1b7e57dc /Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs
parent1a573aaa346ec4b8bd58a0e35ab9df571a09b855 (diff)
downloadTango-51c59649e78ea81d88c52ca7a0f61d53e9ac83fe.tar.gz
Tango-51c59649e78ea81d88c52ca7a0f61d53e9ac83fe.zip
Working on developer module...
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs')
-rw-r--r--Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs7
1 files changed, 6 insertions, 1 deletions
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
/// <param name="value">if set to <c>true</c> [value].</param>
protected virtual void OnEnableDiagnosticsChanged(bool value)
{
- if (value && State == TransportComponentState.Connected)
+ if (value && State == TransportComponentState.Connected && !_diagnosticsSent)
{
SendContinuousRequest<PushDiagnosticsRequest, PushDiagnosticsResponse>(new TangoMessage<PushDiagnosticsRequest>(new PushDiagnosticsRequest()
{
@@ -117,6 +117,11 @@ namespace Tango.Integration.Operators
{
base.OnStateChanged(state);
+ if (state != TransportComponentState.Connected)
+ {
+ _diagnosticsSent = false;
+ }
+
OnEnableDiagnosticsChanged(EnableDiagnostics);
}