'Config', 'Results' projects added, includes iPerl opto logging bug-fixes, builds OK, cannot open DB, version 2.0.158.
This commit is contained in:
@@ -7,6 +7,7 @@ using System.Globalization;
|
||||
using System.IO.Ports;
|
||||
using System.Text;
|
||||
using log4net;
|
||||
using Config.Entities;
|
||||
using TBF.BenchControl.Generic;
|
||||
using TBF.Boxes;
|
||||
|
||||
@@ -132,7 +133,7 @@ namespace TBF.BenchControl.Danfoss.VLT2800
|
||||
|
||||
public void Initialize()
|
||||
{
|
||||
if (pumpCfg.DebugLevel == Entities.DebugMode.Simulate)
|
||||
if (pumpCfg.DebugLevel == DebugMode.Simulate)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -149,7 +150,7 @@ namespace TBF.BenchControl.Danfoss.VLT2800
|
||||
/// <summary>Run this device</summary>
|
||||
public void RunDeviceBefore()
|
||||
{
|
||||
if (pumpCfg.DebugLevel == Entities.DebugMode.Simulate) return;
|
||||
if (pumpCfg.DebugLevel == DebugMode.Simulate) return;
|
||||
|
||||
responseBuilder.Append(serialPort.ReadExisting());
|
||||
|
||||
@@ -182,7 +183,7 @@ namespace TBF.BenchControl.Danfoss.VLT2800
|
||||
{
|
||||
if (dataToSendReady)
|
||||
{
|
||||
if (pumpCfg.DebugLevel != Entities.DebugMode.Simulate)
|
||||
if (pumpCfg.DebugLevel != DebugMode.Simulate)
|
||||
{
|
||||
serialPort.Write(dataToSend, 0, dataToSend.Length);
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace TBF.BenchControl.Danfoss.VLT2800
|
||||
|
||||
public IComponentCfg DefaultConfig() { return new PumpCfg(this); }
|
||||
|
||||
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
|
||||
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
||||
{
|
||||
return ComponentCfgBase.CreateFromDbEntity(typeof(PumpCfg), component, this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user