mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-21 22:13:18 +08:00
Sensors: Clean up boot output (#8005)
Various sensors had too verbose or confusing boot output that would make the boot log hard to read. This patch ensures all output is consistently indicating if there is a real error or an optional sensor just not present. It also removed redundant error messages and adds an indication on which bus the sensor was probed.
This commit is contained in:
committed by
Daniel Agar
parent
d04d62c37e
commit
a945cd9fc2
@@ -133,7 +133,7 @@ start(bool external_bus, enum Rotation rotation, enum sensor_type sensor)
|
||||
close(fd_gyr);
|
||||
}
|
||||
|
||||
exit(0);
|
||||
exit(PX4_OK);
|
||||
|
||||
fail_accel:
|
||||
|
||||
@@ -142,7 +142,8 @@ fail_accel:
|
||||
*g_dev_acc_ptr = nullptr;
|
||||
}
|
||||
|
||||
errx(1, "bmi055 accel driver start failed");
|
||||
PX4_WARN("No BMI055 accel found");
|
||||
exit(PX4_ERROR);
|
||||
|
||||
fail_gyro:
|
||||
|
||||
@@ -151,7 +152,8 @@ fail_gyro:
|
||||
*g_dev_gyr_ptr = nullptr;
|
||||
}
|
||||
|
||||
errx(1, "bmi055 gyro driver start failed");
|
||||
PX4_WARN("No BMI055 gyro found");
|
||||
exit(PX4_ERROR);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user