Skip to content

Commit 18f0680

Browse files
authored
Clarify device ID report log message (SlimeVR#175)
1 parent 20888d2 commit 18f0680

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/sensors/bmi160sensor.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ void BMI160Sensor::motionSetup() {
5959
// initialize device
6060
imu.initialize(addr);
6161
if(!imu.testConnection()) {
62-
m_Logger.fatal("Can't connect to BMI160 (0x%02x) at address 0x%02x", imu.getDeviceID(), addr);
62+
m_Logger.fatal("Can't connect to BMI160 (reported device ID 0x%02x) at address 0x%02x", imu.getDeviceID(), addr);
6363
ledManager.pattern(50, 50, 200);
6464
return;
6565
}
6666

67-
m_Logger.info("Connected to BMI160 (0x%02x) at address 0x%02x", imu.getDeviceID(), addr);
67+
m_Logger.info("Connected to BMI160 (reported device ID 0x%02x) at address 0x%02x", imu.getDeviceID(), addr);
6868

6969
int16_t ax, ay, az;
7070
imu.getAcceleration(&ax, &ay, &az);

src/sensors/mpu6050sensor.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ void MPU6050Sensor::motionSetup()
4040
imu.initialize(addr);
4141
if (!imu.testConnection())
4242
{
43-
m_Logger.fatal("Can't connect to MPU6050 (0x%02x) at address 0x%02x", imu.getDeviceID(), addr);
43+
m_Logger.fatal("Can't connect to MPU6050 (reported device ID 0x%02x) at address 0x%02x", imu.getDeviceID(), addr);
4444
return;
4545
}
4646

47-
m_Logger.info("Connected to MPU6050 (0x%02x) at address 0x%02x", imu.getDeviceID(), addr);
47+
m_Logger.info("Connected to MPU6050 (reported device ID 0x%02x) at address 0x%02x", imu.getDeviceID(), addr);
4848

4949
#ifndef IMU_MPU6050_RUNTIME_CALIBRATION
5050
// Initialize the configuration

src/sensors/mpu9250sensor.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ void MPU9250Sensor::motionSetup() {
4343
// initialize device
4444
imu.initialize(addr);
4545
if(!imu.testConnection()) {
46-
m_Logger.fatal("Can't connect to MPU9250 (0x%02x) at address 0x%02x", imu.getDeviceID(), addr);
46+
m_Logger.fatal("Can't connect to MPU9250 (reported device ID 0x%02x) at address 0x%02x", imu.getDeviceID(), addr);
4747
return;
4848
}
4949

50-
m_Logger.info("Connected to MPU9250 (0x%02x) at address 0x%02x", imu.getDeviceID(), addr);
50+
m_Logger.info("Connected to MPU9250 (reported device ID 0x%02x) at address 0x%02x", imu.getDeviceID(), addr);
5151

5252
int16_t ax,ay,az;
5353

0 commit comments

Comments
 (0)