From c14073e78d2c5b9569f91f47609d431da48ba706 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Sun, 6 May 2018 13:50:14 +0300 Subject: Added start/stop diagnostics and debugging on PMR. Added device info to connected machine view. Added enable/disable diagnostics/debugging to connected machine view. Improved transfer rate calculation. --- .../Diagnostics/DefaultDiagnosticsFrameProvider.cs | 8 ++++---- .../Diagnostics/IDiagnosticsFrameProvider.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common') diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/DefaultDiagnosticsFrameProvider.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/DefaultDiagnosticsFrameProvider.cs index 63612d420..42eab20a5 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/DefaultDiagnosticsFrameProvider.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/DefaultDiagnosticsFrameProvider.cs @@ -40,7 +40,7 @@ namespace Tango.MachineStudio.Common.Diagnostics /// /// Occurs when a new data frame is available. /// - public event EventHandler FrameReceived; + public event EventHandler FrameReceived; /// /// Initializes a new instance of the class. @@ -70,7 +70,7 @@ namespace Tango.MachineStudio.Common.Diagnostics /// /// The sender. /// The frame. - private void DefaultDiagnosticsFrameProvider_DiagnosticsDataAvailable(object sender, PushDiagnosticsResponse frame) + private void DefaultDiagnosticsFrameProvider_DiagnosticsDataAvailable(object sender, StartDiagnosticsResponse frame) { if (!Disable) { @@ -82,7 +82,7 @@ namespace Tango.MachineStudio.Common.Diagnostics /// Push frames manual. (Only when Disable = true) /// /// The frame. - public void PushFrame(PushDiagnosticsResponse frame) + public void PushFrame(StartDiagnosticsResponse frame) { if (Disable) { @@ -94,7 +94,7 @@ namespace Tango.MachineStudio.Common.Diagnostics /// Raises the event. /// /// The frame. - protected virtual void OnFrameReceived(PushDiagnosticsResponse frame) + protected virtual void OnFrameReceived(StartDiagnosticsResponse frame) { FrameReceived?.Invoke(this, frame); } diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/IDiagnosticsFrameProvider.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/IDiagnosticsFrameProvider.cs index 3294b341d..3944fe8cb 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/IDiagnosticsFrameProvider.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/IDiagnosticsFrameProvider.cs @@ -16,7 +16,7 @@ namespace Tango.MachineStudio.Common.Diagnostics /// /// Occurs when a new data frame is available. /// - event EventHandler FrameReceived; + event EventHandler FrameReceived; /// /// Disables the frame delivery from the current connected machine and enables the manual push frame method. @@ -27,6 +27,6 @@ namespace Tango.MachineStudio.Common.Diagnostics /// Push frames manual. (Only when Disable = true) /// /// The frame. - void PushFrame(PushDiagnosticsResponse frame); + void PushFrame(StartDiagnosticsResponse frame); } } -- cgit v1.3.1