Reg. valve stop param, ver. 3.1.1626

This commit is contained in:
Milan Hanajik 2021-03-11 10:46:15 +01:00
parent 13b3aca95f
commit 21183ca801
2 changed files with 10 additions and 3 deletions

View File

@ -29,5 +29,5 @@ using System.Runtime.InteropServices;
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.1.1625.0")]
[assembly: AssemblyFileVersion("3.1.1625.0")]
[assembly: AssemblyVersion("3.1.1626.0")]
[assembly: AssemblyFileVersion("3.1.1626.0")]

View File

@ -66,7 +66,7 @@ namespace TBF.Rig.ControlBoard.Uni
message[29] = (byte)((action.RVMovePar1 >> 8) & 0xFF);
message[30] = (byte)(action.RVMovePar2 & 0xFF);
message[31] = (byte)((action.RVMovePar2 >> 8) & 0xFF);
message[32] = action.IsStop() ? (byte)0x20 : action.IsStart() ? (byte)0x42 : (byte)0; /// ZStavReg
message[32] = GetRVStopParam(action);
/// DA1
message[33] = 0; /// PrudParL
@ -111,6 +111,13 @@ namespace TBF.Rig.ControlBoard.Uni
{
return (byte)StopDevs.All;
}
static byte GetRVStopParam(Action action)
{
if (action.IsStop()) return (byte)0x20;
if ((action.ActionId & ActionID.RegVlvStop) != 0) return (byte)0x20;
return (byte)0;
}
}