From 1350ae809b59e903bed23b05f4b7f2c700e254b1 Mon Sep 17 00:00:00 2001 From: Bartek Date: Wed, 1 May 2024 00:04:56 +0200 Subject: [PATCH] fix mpu6050 sensor initialization issue --- i2c/mpu6050_i2c/mpu6050_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i2c/mpu6050_i2c/mpu6050_i2c.c b/i2c/mpu6050_i2c/mpu6050_i2c.c index 9f14e8c8b..49f4144f0 100644 --- a/i2c/mpu6050_i2c/mpu6050_i2c.c +++ b/i2c/mpu6050_i2c/mpu6050_i2c.c @@ -37,7 +37,7 @@ static int addr = 0x68; static void mpu6050_reset() { // Two byte reset. First byte register, second byte data // There are a load more options to set up the device in different ways that could be added here - uint8_t buf[] = {0x6B, 0x80}; + uint8_t buf[] = {0x6B}; i2c_write_blocking(i2c_default, addr, buf, 2, false); }