BST driver: Clean up I2C bus and stack

This commit is contained in:
Lorenz Meier
2015-11-22 12:34:02 +01:00
parent 45c9ca5eb7
commit 02e7144d9f
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -33,6 +33,7 @@
px4_add_module(
MODULE drivers__bst
MAIN bst
STACK 1200
COMPILE_FLAGS
-Os
SRCS
+1 -2
View File
@@ -50,7 +50,6 @@
#include <uORB/topics/vehicle_gps_position.h>
#include <uORB/topics/battery_status.h>
#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;