From ab8595e04c7009ee7fbe33f005fda678baad8ebd Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 2 Mar 2020 09:14:29 +0100 Subject: i2cdetect: fix mpu9250 usage --- src/app/i2cdetect/main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/app/i2cdetect/main.cc b/src/app/i2cdetect/main.cc index e5442ff..68c3677 100644 --- a/src/app/i2cdetect/main.cc +++ b/src/app/i2cdetect/main.cc @@ -128,10 +128,10 @@ void loop(void) kout << "Gyro X " << mpu9250.getGyroX() << endl; kout << "Gyro Y " << mpu9250.getGyroX() << endl; kout << "Gyro Z " << mpu9250.getGyroX() << endl; - mpu9250.getMagnet(&mx, &my, &mz); + mpu9250.getRawMagnet(&mx, &my, &mz); kout << "Magnet X " << mx << endl; - kout << "Magnet Y " << mx << endl; - kout << "Magnet Z " << mx << endl; + kout << "Magnet Y " << my << endl; + kout << "Magnet Z " << mz << endl; #endif #ifdef DRIVER_MAX44009 kout.printf_float(max44009.getLux()); -- cgit v1.2.3