mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
Improved sensor startup and error checking
This commit is contained in:
@@ -953,7 +953,7 @@ Sensors::baro_init()
|
||||
|
||||
if (fd < 0) {
|
||||
warn("%s", BARO_DEVICE_PATH);
|
||||
warnx("No barometer found, ignoring");
|
||||
errx(1, "FATAL: No barometer found");
|
||||
}
|
||||
|
||||
/* set the driver to poll at 150Hz */
|
||||
|
||||
Reference in New Issue
Block a user