mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 11:38:54 +08:00
ll40ls: fixed exit code on external sensor startup failure
This commit is contained in:
committed by
Lorenz Meier
parent
f3b021ac05
commit
7b6620b319
@@ -746,6 +746,9 @@ start(int bus)
|
||||
if (g_dev_ext != nullptr && OK != g_dev_ext->init()) {
|
||||
delete g_dev_ext;
|
||||
g_dev_ext = nullptr;
|
||||
if (bus == PX4_I2C_BUS_EXPANSION) {
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user