Skip to content

Commit a25c40b

Browse files
Merge pull request #155 from ShimmerEngineering/DEV-43_2
DEV-43
2 parents 4dc4fdd + 286c7ca commit a25c40b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ShimmerAPI/ShimmerAPI/ShimmerBluetooth.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,7 @@ public void ReadData()
16171617
bufferbyte[p] = (byte)ReadByte();
16181618

16191619
}
1620-
RetrieveKinematicCalibrationParametersFromPacket(bufferbyte, (byte)PacketTypeShimmer3.ALT_MAG_CALIBRATION_RESPONSE);
1620+
RetrieveKinematicCalibrationParametersFromPacket(bufferbyte, (byte)PacketTypeShimmer3.ALT_ACCEL_CALIBRATION_RESPONSE);
16211621

16221622
//Retrieve High G Accel Cal Paramters if Shimmer 3
16231623
bufferbyte = new byte[21];
@@ -1626,7 +1626,8 @@ public void ReadData()
16261626
bufferbyte[p] = (byte)ReadByte();
16271627

16281628
}
1629-
RetrieveKinematicCalibrationParametersFromPacket(bufferbyte, (byte)PacketTypeShimmer3.ALT_ACCEL_CALIBRATION_RESPONSE);
1629+
RetrieveKinematicCalibrationParametersFromPacket(bufferbyte, (byte)PacketTypeShimmer3.ALT_MAG_CALIBRATION_RESPONSE);
1630+
16301631
}
16311632

16321633
break;
@@ -2551,6 +2552,7 @@ protected void RetrieveKinematicCalibrationParametersFromPacket(byte[] bufferCal
25512552
OffsetVectorAltAccel = offsetVector;
25522553
SensitivityMatrixAltAccel = sensitivityMatrix;
25532554
DefaultHighGAccelParams = false;
2555+
25542556
}
25552557
else if (packetType == (byte)PacketTypeShimmer3.ALT_ACCEL_CALIBRATION_RESPONSE && (sensitivityMatrix[0, 0] == -1 || UtilCalibration.AllElementsAre(sensitivityMatrix, 0))
25562558
&& HardwareVersion == (int)ShimmerBluetooth.ShimmerVersion.SHIMMER3R)

0 commit comments

Comments
 (0)