From d42bb2c49be402d7a7089173f40fa46f6672cbe0 Mon Sep 17 00:00:00 2001 From: Marcelo Bezerra <23555060+mmosca@users.noreply.github.com> Date: Thu, 14 Dec 2023 10:12:51 +0100 Subject: [PATCH] Fix an apparent typo on accgyro_bmi160.c BMI160 is only used by the RADIX target, which lacks CMakeFileLists.txt --- src/main/drivers/accgyro/accgyro_bmi160.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/drivers/accgyro/accgyro_bmi160.c b/src/main/drivers/accgyro/accgyro_bmi160.c index 62fe2f353..cadaeb22d 100644 --- a/src/main/drivers/accgyro/accgyro_bmi160.c +++ b/src/main/drivers/accgyro/accgyro_bmi160.c @@ -195,9 +195,9 @@ bool bmi160AccReadScratchpad(accDev_t *acc) bmi160ContextData_t * ctx = busDeviceGetScratchpadMemory(acc->busDev); if (ctx->lastReadStatus) { - acc->ADCRaw[X] = (float) int16_val_little_endian(ctx->gyroRaw, 0); - acc->ADCRaw[Y] = (float) int16_val_little_endian(ctx->gyroRaw, 1); - acc->ADCRaw[Z] = (float) int16_val_little_endian(ctx->gyroRaw, 2); + acc->ADCRaw[X] = (float) int16_val_little_endian(ctx->accRaw, 0); + acc->ADCRaw[Y] = (float) int16_val_little_endian(ctx->accRaw, 1); + acc->ADCRaw[Z] = (float) int16_val_little_endian(ctx->accRaw, 2); return true; } -- 2.11.4.GIT