|
@@ -323,7 +323,7 @@ namespace Venus_RT.Devices
|
|
|
//SetPowerOnOff(false, out _);
|
|
|
Status = GeneratorStatus.ERROR;
|
|
|
StatusMatch = GeneratorStatus.ERROR;
|
|
|
- //LOG.Error($"{Module} Comet RF Error {args.Reason}");
|
|
|
+ LOG.Write(eEvent.ERR_RF,Module, $"{Module} Comet RF Error {args.Reason}");
|
|
|
}
|
|
|
|
|
|
public override bool Initialize()
|
|
@@ -463,13 +463,13 @@ namespace Venus_RT.Devices
|
|
|
if (recTransactionNumber != TransactionNumber)
|
|
|
{
|
|
|
if (!SC.GetValue<bool>("System.IsSimulatorMode"))
|
|
|
- //LOG.Error($"RF transaction number is different");
|
|
|
+ LOG.Write(eEvent.ERR_RF, Module, $"RF transaction number is different");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (rawMessage[6] != _address)
|
|
|
{
|
|
|
- //LOG.Error($"RF invalid address byte");
|
|
|
+ LOG.Write(eEvent.ERR_RF, Module, $"RF invalid address byte");
|
|
|
}
|
|
|
|
|
|
if (rawMessage[7] == _read)
|
|
@@ -495,16 +495,16 @@ namespace Venus_RT.Devices
|
|
|
else if (rawMessage[7] == _readInvalid)
|
|
|
{
|
|
|
int DataValue = BitConverter.ToInt32(new byte[] { rawMessage[8], 0x00, 0x00, 0x00 }, 0);
|
|
|
- //LOG.Error($"{Module} [{Display} Read] invalid request, Command Number is {_currentCommandNumber.ToString()}, Exception Code is 0x{DataValue.ToString("X")}");
|
|
|
+ LOG.Write(eEvent.ERR_RF, Module, $"{Module} [{Display} Read] invalid request, Command Number is {_currentCommandNumber.ToString()}, Exception Code is 0x{DataValue.ToString("X")}");
|
|
|
}
|
|
|
else if (rawMessage[7] == _writeInvalid)
|
|
|
{
|
|
|
int DataValue = BitConverter.ToInt32(new byte[] { rawMessage[8], 0x00, 0x00, 0x00 }, 0);
|
|
|
- //LOG.Error($"{Module} [{Display} Write] invalid request, Command Number is {_currentCommandNumber.ToString()}, Exception Code is 0x{DataValue.ToString("X")}");
|
|
|
+ LOG.Write(eEvent.ERR_RF, Module, $"{Module} [{Display} Write] invalid request, Command Number is {_currentCommandNumber.ToString()}, Exception Code is 0x{DataValue.ToString("X")}");
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- //LOG.Error($"RF invalid function code");
|
|
|
+ LOG.Write(eEvent.ERR_RF, Module, $"RF invalid function code");
|
|
|
}
|
|
|
}
|
|
|
//catch (ExcuteFailedException e)
|
|
@@ -533,7 +533,7 @@ namespace Venus_RT.Devices
|
|
|
switch (value)
|
|
|
{
|
|
|
case 0:
|
|
|
- //LOG.Info($"{Module} [{Display} Read] Device is not ready");
|
|
|
+ LOG.Write(eEvent.ERR_RF, Module, $"{Module} [{Display} Read] Device is not ready");
|
|
|
break;
|
|
|
case 1:
|
|
|
//LOG.Info($"{Module} [{Display} Read] Device is ready, RF is off");
|