From ad62da122ff6ccd59558ae994954ed101185d815 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 27 Mar 2024 10:11:20 +0100 Subject: [PATCH] Removing casting in defines --- MPU6050.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/MPU6050.h b/MPU6050.h index 5eca906..2ca411b 100644 --- a/MPU6050.h +++ b/MPU6050.h @@ -4,13 +4,13 @@ #define MPU6050_ADDR 0x68 // With AD0 pin grounded/floating, otherwise 0x69 // MPU-6050 register addresses -#define MPU6050_REG_ACCEL_XOUT_H ((uint8_t *)0x3B) -#define MPU6050_REG_ACCEL_XOUT_L ((uint8_t *)0x3C) -#define MPU6050_REG_GYRO_XOUT_H ((uint8_t *)0x43) -#define MPU6050_REG_GYRO_XOUT_L ((uint8_t *)0x44) -#define MPU6050_TEMP_OUT_H ((uint8_t *)0x41) -#define MPU6050_TEMP_OUT_L ((uint8_t *)0x42) -#define MPU6050_REG_PWR_MGMT_1 ((uint8_t *)0x6B) +#define MPU6050_REG_ACCEL_XOUT_H 0x3B +#define MPU6050_REG_ACCEL_XOUT_L 0x3C +#define MPU6050_REG_GYRO_XOUT_H 0x43 +#define MPU6050_REG_GYRO_XOUT_L 0x44 +#define MPU6050_TEMP_OUT_H 0x41 +#define MPU6050_TEMP_OUT_L 0x42 +#define MPU6050_REG_PWR_MGMT_1 0x6B #include #include