diff --git a/src/drivers/bst/CMakeLists.txt b/src/drivers/bst/CMakeLists.txt index 146f6f6ee0..7c312fc2e9 100644 --- a/src/drivers/bst/CMakeLists.txt +++ b/src/drivers/bst/CMakeLists.txt @@ -33,6 +33,7 @@ px4_add_module( MODULE drivers__bst MAIN bst + STACK 1200 COMPILE_FLAGS -Os SRCS diff --git a/src/drivers/bst/bst.cpp b/src/drivers/bst/bst.cpp index f80ceabc63..c6bf008e50 100644 --- a/src/drivers/bst/bst.cpp +++ b/src/drivers/bst/bst.cpp @@ -50,7 +50,6 @@ #include #include -#define DEFAULT_DEVICE 1 // TODO use PX4 define for external I2C #define BST_DEVICE_PATH "/dev/bst0" static const char commandline_usage[] = "usage: bst start|status|stop"; @@ -346,7 +345,7 @@ int bst_main(int argc, char *argv[]) { exit(0); } - g_bst = new BST(DEFAULT_DEVICE); + g_bst = new BST(PX4_I2C_BUS_EXPANSION); if (g_bst != nullptr && OK != g_bst->init()) { delete g_bst;