Pump tandem, ver. 3.1.1606

This commit is contained in:
Milan Hanajik
2021-03-23 16:37:47 +01:00
parent ce6896b584
commit aff25e307d
2 changed files with 9 additions and 8 deletions
+2 -2
View File
@@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number // Build Number
// Revision // Revision
// //
[assembly: AssemblyVersion("3.1.1605.0")] [assembly: AssemblyVersion("3.1.1606.0")]
[assembly: AssemblyFileVersion("3.1.1605.0")] [assembly: AssemblyFileVersion("3.1.1606.0")]
+3 -2
View File
@@ -53,10 +53,10 @@ namespace TBF.Rig.BuiltIn.PumpTandem
{ {
pumpCfg = cfg as PumpCfg; pumpCfg = cfg as PumpCfg;
pump1 = (GenericDevices.IPump)TbfComponents.FindComponent(pumpCfg.Pump1, components); pump1 = TbfComponents.FindComponent(pumpCfg.Pump1, components) as GenericDevices.IPump;
if (pump1 == null) throw new Exception("Cannot find component Pump 1"); if (pump1 == null) throw new Exception("Cannot find component Pump 1");
pump2 = (GenericDevices.IPump)TbfComponents.FindComponent(pumpCfg.Pump2, components); pump2 = TbfComponents.FindComponent(pumpCfg.Pump2, components) as GenericDevices.IPump;
if (pump2 == null) throw new Exception("Cannot find component Pump 2"); if (pump2 == null) throw new Exception("Cannot find component Pump 2");
pumpFm1 = pump1 as GenericDevices.IPumpFM; pumpFm1 = pump1 as GenericDevices.IPumpFM;
@@ -157,6 +157,7 @@ namespace TBF.Rig.BuiltIn.PumpTandem
case CurrentOp.TurnOn: case CurrentOp.TurnOn:
TurnOn(powerForOp); TurnOn(powerForOp);
return; return;
case CurrentOp.TurnOff: case CurrentOp.TurnOff:
default: default:
TurnOff(); TurnOff();