Prolonged test support in Action, OutputMessage, etc., ver. 3.1.1634

This commit is contained in:
Milan Hanajik
2021-03-15 15:52:49 +01:00
parent 4770f3e393
commit d22158404d
7 changed files with 37 additions and 16 deletions
+10 -1
View File
@@ -93,7 +93,14 @@ namespace TBF.Rig.ControlBoard.Uni
static byte GetCommand(Action action)
{
return (byte)action.StartStop;
if (action.StartStop == Command.Start && action.IsProlonged)
{
return (byte)(Command.Start | Command.ProlongedFlag);
}
else
{
return (byte)action.StartStop;
}
}
static byte GetStartParams(Action action)
@@ -130,6 +137,8 @@ namespace TBF.Rig.ControlBoard.Uni
GetScopeAnalyzerData = 7,
ResetScopeAnalyzer = 8,
GetSwitchCounterData = 9,
///
ProlongedFlag = 0x10, /// Not a command of its own, a valid command is (byte)(Command.Start | Command.ProlongedFlag)
}
public enum StartParam : byte