Skip to content

Commit 45def2c

Browse files
Merge pull request #11367 from Ncerzzk/fix_lsm6dxx
fix lsm6dxx driver lack gyroAlign setting issue.
2 parents 7b9b5d5 + a30a4bd commit 45def2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/drivers/accgyro/accgyro_lsm6dxx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ bool lsm6dGyroDetect(gyroDev_t *gyro)
222222
gyro->initFn = lsm6dxxSpiGyroInit;
223223
gyro->readFn = lsm6dxxGyroRead;
224224
gyro->intStatusFn = gyroCheckDataReady;
225+
gyro->gyroAlign = gyro->busDev->param;
225226
gyro->scale = 1.0f / 16.4f; // 2000 dps
226227
return true;
227228

0 commit comments

Comments
 (0)