Fix typing to resolve build errors after installing the mpu6050_imu usermod.

This commit is contained in:
Ryan Horricks 2023-03-18 18:29:19 -06:00
parent 991c2afedb
commit 7789379914

View File

@ -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;
}
};
};