aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs
diff options
context:
space:
mode:
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.cs11
1 files changed, 5 insertions, 6 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 cd432538c..a16e2f649 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs
@@ -89,6 +89,11 @@ namespace Tango.PPC.Common.Connection
MachineOperator.GradientGenerationConfiguration.IsEnabled = settings.EnableGradientGeneration;
MachineOperator.GradientGenerationConfiguration.ResolutionCM = settings.GradientGenerationResolution;
+
+ MachineOperator.EmergencyNotificationProvider.Address = settings.EmergencyComPort;
+ MachineOperator.EmergencyNotificationProvider.IsEnabled = settings.EnableEmergencyNotifications;
+
+ MachineOperator.EnableJobLiquidQuantityValidation = settings.EnableJobLiquidQuantityValidation;
}
private async void ConnectionThreadMethod()
@@ -159,9 +164,6 @@ namespace Tango.PPC.Common.Connection
await Task.Delay(1000);
await MachineOperator.UploadHardwareConfiguration(Machine.Configuration.HardwareVersion, Machine.Configuration);
MachineOperator.UseKeepAlive = true;
-
- MachineOperator.EmergencyNotificationProvider.Address = settings.EmergencyComPort;
- MachineOperator.EmergencyNotificationProvider.IsEnabled = settings.EnableEmergencyNotifications;
}
}
else
@@ -184,9 +186,6 @@ namespace Tango.PPC.Common.Connection
await Task.Delay(1000);
await MachineOperator.UploadHardwareConfiguration(Machine.Configuration.HardwareVersion, Machine.Configuration);
-
- MachineOperator.EmergencyNotificationProvider.Address = settings.EmergencyComPort;
- MachineOperator.EmergencyNotificationProvider.IsEnabled = settings.EnableEmergencyNotifications;
}
}
catch (Exception ex)