Uni : MassPulsesCount is equal to TotalPulsesCount for all methods except Prolonged method, ver. 3.1.1631

This commit is contained in:
Milan Hanajik
2021-03-15 11:40:33 +01:00
parent bdefc0b8fa
commit f74fff9b51
4 changed files with 5 additions and 13 deletions
+2 -2
View File
@@ -187,7 +187,7 @@ namespace TBF.Rig.ControlBoard.Uni
///----------------------------------------------------------------------------------------------
public static Action StartTest(bool isFromUI, int flowMId, int divId, int divThreshold, bool isSyncMethod,
bool isDivUsed, bool isStartStop, int totalPulsesCount, int massPulsesCount = -1)
bool isDivUsed, bool isStartStop, int totalPulsesCount, int massPulsesCount = 0)
{
return new Action
{
@@ -201,7 +201,7 @@ namespace TBF.Rig.ControlBoard.Uni
IsDivUsed = isDivUsed,
IsStartStop = isStartStop,
TotalPulsesCount = totalPulsesCount,
MassPulsesCount = (massPulsesCount == -1) ? totalPulsesCount : massPulsesCount,
MassPulsesCount = (massPulsesCount <= 0) ? totalPulsesCount : massPulsesCount,
StartStop = Command.Start,
};
}