summaryrefslogtreecommitdiff
path: root/src/app/i2cdetect/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/i2cdetect/main.cc')
-rw-r--r--src/app/i2cdetect/main.cc6
1 files changed, 3 insertions, 3 deletions
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());