mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 05:10:35 +08:00
POSIX: Added sleep command
The baro was not fully initialized when the sensors module tried to open it. Added a sleep command and a sleep 2 to rc.S so the baro is initialized by the time the sensors module tried to read it. Fixed other noisy errors Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -868,7 +868,7 @@ Sensors::parameters_update()
|
||||
barofd = px4_open(BARO0_DEVICE_PATH, 0);
|
||||
|
||||
if (barofd < 0) {
|
||||
warnx("ERROR: no barometer foundon %s", BARO0_DEVICE_PATH);
|
||||
warnx("ERROR: no barometer found on %s", BARO0_DEVICE_PATH);
|
||||
return ERROR;
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user