Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
deiteris committed Oct 8, 2022
1 parent 05993b6 commit 1b68818
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sensors/mpu9250sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ void MPU9250Sensor::motionSetup() {
uint8_t magId = imu.getMagnetometerDeviceID();
if (magId != 0xFF) {
m_Logger.fatal("Can't connect to QMC5883L (reported ID 0x%02x) at address 0x%02x", magId, 0x0D);
} else {
m_Logger.info("Connected to QMC5883L (reported ID 0x%02x) at address 0x%02x", magId, 0x0D);
}

m_Logger.info("Connected to QMC5883L (reported ID 0x%02x) at address 0x%02x", magId, 0x0D);

int16_t ax,ay,az;

// turn on while flip back to calibrate. then, flip again after 5 seconds.
Expand Down

0 comments on commit 1b68818

Please sign in to comment.