From 77893799149098908d2ce774f9bb7bbd4c844ce9 Mon Sep 17 00:00:00 2001 From: Ryan Horricks Date: Sat, 18 Mar 2023 18:29:19 -0600 Subject: [PATCH] Fix typing to resolve build errors after installing the mpu6050_imu usermod. --- usermods/mpu6050_imu/usermod_mpu6050_imu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usermods/mpu6050_imu/usermod_mpu6050_imu.h b/usermods/mpu6050_imu/usermod_mpu6050_imu.h index 283c986e0..b4dc01a4d 100644 --- a/usermods/mpu6050_imu/usermod_mpu6050_imu.h +++ b/usermods/mpu6050_imu/usermod_mpu6050_imu.h @@ -209,7 +209,7 @@ class MPU6050Driver : public Usermod { JsonObject user = root["u"]; if (user.isNull()) user = root.createNestedObject("u"); - JsonArray imu_meas = user.createNestedObject("IMU"); + JsonObject imu_meas = user.createNestedObject("IMU"); JsonArray quat_json = imu_meas.createNestedArray("Quat"); quat_json.add(qat.w); quat_json.add(qat.x); @@ -287,4 +287,4 @@ class MPU6050Driver : public Usermod { return USERMOD_ID_IMU; } -}; \ No newline at end of file +};