diff options
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs | 6 |
1 files changed, 5 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 3446fe55d..bc96e4eba 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs @@ -448,15 +448,19 @@ namespace Tango.PPC.Common.Connection MachineConnected?.Invoke(this, new EventArgs()); + var settings = SettingsManager.Default.GetOrCreate<PPCSettings>(); + if (Machine.Type.IsXMachine()) { try { - var settings = SettingsManager.Default.GetOrCreate<PPCSettings>(); await MachineOperator.SetPowerSavingMode((int)settings.PowerSavingModeIdle, (int)settings.PowerSavingModePowerOff); } catch { } } + + await MachineOperator.SetBuzzerSettings(settings.EnableBuzzer, settings.BuzzerDuration); + await MachineOperator.SetWhiteThreadSkip(settings.EnableWhiteThreadSkip); } /// <summary> |
