ll40ls: fixed exit code on external sensor startup failure

This commit is contained in:
Andrew Tridgell
2015-01-01 13:06:46 +01:00
committed by Lorenz Meier
parent f3b021ac05
commit 7b6620b319
+3
View File
@@ -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;
}
}
}