Skip to content

Commit 1f64fe4

Browse files
committed
Update F_BMX055.cpp
1 parent 8bb4031 commit 1f64fe4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/F_BMX055.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,9 @@ void BMX055::calibrateMag(calData* cal)
364364
MagCount[1] = ((rawDataMag[3] << 8) | (rawDataMag[2] & 0xF8)) >> 3;
365365
MagCount[2] = ((rawDataMag[5] << 8) | (rawDataMag[4] & 0xFE)) >> 1; // Turn the MSB and LSB into a signed 15-bit value
366366

367-
magReading[1] = (float)(MagCount[0] * mResXY);
368-
magReading[2] = (float)(MagCount[1] * mResXY);
369-
magReading[3] = (float)(MagCount[2] * mResZ);
367+
magReading[0] = (float)(MagCount[0] * mResXY);
368+
magReading[1] = (float)(MagCount[1] * mResXY);
369+
magReading[2] = (float)(MagCount[2] * mResZ);
370370

371371
for (int jj = 0; jj < 3; jj++)
372372
{

0 commit comments

Comments
 (0)