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:
Lorenz Meier
2017-09-25 11:19:11 -04:00
committed by Daniel Agar
parent d04d62c37e
commit a945cd9fc2
8 changed files with 148 additions and 95 deletions
+5 -3
View File
@@ -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);
}