diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-03-02 09:14:29 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-03-02 09:15:02 +0100 |
commit | ab8595e04c7009ee7fbe33f005fda678baad8ebd (patch) | |
tree | f4488384a297a5b3eb7f80c957314f2d6341de69 /src/app/i2cdetect | |
parent | 51e26d2d09aebaa311a4775e580f7c966dcc66f9 (diff) |
i2cdetect: fix mpu9250 usage
Diffstat (limited to 'src/app/i2cdetect')
-rw-r--r-- | src/app/i2cdetect/main.cc | 6 |
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()); |