Refactor FlipMode enum and update references: rename DisabledConstant to Constant and EnabledRandomized to Randomized across codebase, including unit tests and integration tests, for improved readability and consistency.
This commit is contained in:
@@ -2,7 +2,7 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.communication.C4.protocolCommon
|
||||
{
|
||||
public enum FlipMode : byte
|
||||
{
|
||||
DisabledConstant = 0x00, //Constant
|
||||
EnabledRandomized = 0x01 //Randomized
|
||||
Constant = 0x00, //Constant
|
||||
Randomized = 0x01 //Randomized
|
||||
}
|
||||
}
|
||||
@@ -887,7 +887,7 @@ namespace TBF.Rig.TestMethods.iPerlCommunication
|
||||
{
|
||||
return SetFlipMode(
|
||||
ihead,
|
||||
FlipMode.EnabledRandomized,
|
||||
FlipMode.Randomized,
|
||||
iPerlCommunicationConstants.SetFlipModeRandomizedStr,
|
||||
ref resultStr);
|
||||
}
|
||||
@@ -896,7 +896,7 @@ namespace TBF.Rig.TestMethods.iPerlCommunication
|
||||
{
|
||||
return SetFlipMode(
|
||||
ihead,
|
||||
FlipMode.DisabledConstant,
|
||||
FlipMode.Constant,
|
||||
iPerlCommunicationConstants.SetFlipModeConstantStr,
|
||||
ref resultStr);
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
|
||||
break;
|
||||
}
|
||||
|
||||
bool successful = iPerlHead.OptoHeadTest.SetFlipMode(FlipMode.DisabledConstant);
|
||||
bool successful = iPerlHead.OptoHeadTest.SetFlipMode(FlipMode.Constant);
|
||||
rfidListItem.Text = successful
|
||||
? "Set Flip Mode Constant (0x00) - OK"
|
||||
: "Set Flip Mode Constant (0x00) - FAILED";
|
||||
@@ -168,7 +168,7 @@ namespace TBF.Rig.TestMethods.iPerlCommunication.iPerlHead
|
||||
break;
|
||||
}
|
||||
|
||||
bool successful = iPerlHead.OptoHeadTest.SetFlipMode(FlipMode.EnabledRandomized);
|
||||
bool successful = iPerlHead.OptoHeadTest.SetFlipMode(FlipMode.Randomized);
|
||||
rfidListItem.Text = successful
|
||||
? "Set Flip Mode Randomized (0x01) - OK"
|
||||
: "Set Flip Mode Randomized (0x01) - FAILED";
|
||||
|
||||
Reference in New Issue
Block a user