Fix Demo Head-Offset

This commit is contained in:
Nicola Carminati
2018-03-23 16:53:11 +00:00
parent 6be42fdd6c
commit c6b9ef445c
+6 -6
View File
@@ -745,12 +745,12 @@ namespace CMS_CORE.Demo
Id = (uint)i,
Process = readValues[headOffset],
Override = readValues[headOffset + 1],
Load_Abrasive = BitConverter.ToUInt16(readValues.ToArray(), headOffset + 2), // Uint 16 = 2byte
ActualSpeed_Pressure = BitConverter.ToInt32(readValues.ToArray(), headOffset + 4), // Int32 = 4byte
MountedTool_Vacum = BitConverter.ToUInt16(readValues.ToArray(), headOffset + 8), // Uint 16 = 2byte
isActive = (readValues[headOffset + 10] & 1) != 0, // bit 0
isSelected = (readValues[headOffset + 10] & 2) != 0, // bit 1
OverrideEditable = (readValues[headOffset + 10] & 4) != 0 // bit 2
Load_Abrasive = readValues[headOffset + 2],
ActualSpeed_Pressure = BitConverter.ToInt32(readValues.ToArray(), headOffset + 3), // Int32 = 4byte
MountedTool_Vacum = BitConverter.ToUInt16(readValues.ToArray(), headOffset + 7), // Uint 16 = 2byte
isActive = (readValues[headOffset + 9] & 1) != 0, // bit 0
isSelected = (readValues[headOffset + 9] & 2) != 0, // bit 1
OverrideEditable = (readValues[headOffset + 9] & 4) != 0 // bit 2
});
}