iPerlCommunication : TestModeConfig value verified after switching to a test mode.
This commit is contained in:
parent
ebf96f655c
commit
b2226ad779
@ -972,13 +972,13 @@ namespace TBF.BenchControl.TestMethods.iPerlCommunication
|
||||
{
|
||||
/// Verify the configuration
|
||||
error = CommErr.Verify;
|
||||
byte[] cfg_0_3 = null;
|
||||
byte[] config = null;
|
||||
for (int j = 0; j < cfg.MaxCommRetries; j++)
|
||||
{
|
||||
if (0 == ReadRequestPort(threadId, ihead, MessageID.Configuration, 0, 4, out cfg_0_3, cfg.CommTimeout))
|
||||
if (0 == ReadRequestPort(threadId, ihead, MessageID.Configuration, 0, ConfigStruct.Length, out config, cfg.CommTimeout))
|
||||
{
|
||||
ihead.ConfigStruct.Update(0, cfg_0_3);
|
||||
if (ihead.ConfigStruct.MeterState == MeterState.Test)
|
||||
ihead.ConfigStruct = ConfigStruct.FromByteArray(config);
|
||||
if ((ihead.ConfigStruct.MeterState == MeterState.Test) && (ihead.ConfigStruct.TestModeConfig == testModeConfig))
|
||||
{
|
||||
error = CommErr.None;
|
||||
resultStr = ihead.ConfigStruct.ToString(1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user