diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-05-21 20:31:36 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2024-05-21 20:31:36 +0300 |
| commit | 4c3be889e920102408b0927c5f595ada5a6a544f (patch) | |
| tree | 71213b906a9762faff2ff49029c5ecdda9d7dc94 /Software/Visual_Studio/PPC/Tango.PPC.Common/Connection | |
| parent | c33507b4aa109a1f2f2d7bd3483c468cc50b19b6 (diff) | |
| download | Tango-4c3be889e920102408b0927c5f595ada5a6a544f.tar.gz Tango-4c3be889e920102408b0927c5f595ada5a6a544f.zip | |
Fixed spool count on job from CSV.
Added auto power off selection settings.
Fixed issue with power off on firmware reset.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Connection')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs index 7f67a4444..7a5a14ede 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs @@ -442,10 +442,18 @@ namespace Tango.PPC.Common.Connection /// <summary> /// Called when the machine has connected. /// </summary> - protected virtual void OnMachineConnected() + protected async virtual void OnMachineConnected() { IsConnected = true; + MachineConnected?.Invoke(this, new EventArgs()); + + try + { + var settings = SettingsManager.Default.GetOrCreate<PPCSettings>(); + await MachineOperator.SetPowerDownTime((int)settings.PowerSavingMode); + } + catch { } } /// <summary> |
