From 2f4080f47b8dbc5259310da73568d8ca7e9c9957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 26 Feb 2020 14:34:45 +0100 Subject: [PATCH] i2cdetect: remove use of PX4_I2C_BUS_EXPANSION --- src/systemcmds/i2cdetect/i2cdetect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/systemcmds/i2cdetect/i2cdetect.cpp b/src/systemcmds/i2cdetect/i2cdetect.cpp index dc6b56cf8b..74323e6305 100644 --- a/src/systemcmds/i2cdetect/i2cdetect.cpp +++ b/src/systemcmds/i2cdetect/i2cdetect.cpp @@ -135,7 +135,7 @@ int usage(const char *reason = nullptr) PRINT_MODULE_DESCRIPTION("Utility to scan for I2C devices on a particular bus."); PRINT_MODULE_USAGE_NAME_SIMPLE("i2cdetect", "command"); - PRINT_MODULE_USAGE_PARAM_INT('b', 1, 4, PX4_I2C_BUS_EXPANSION, "I2C bus", true); + PRINT_MODULE_USAGE_PARAM_INT('b', 1, 4, 1, "I2C bus", true); return PX4_OK; } @@ -148,7 +148,7 @@ extern "C" { int i2cdetect_main(int argc, char *argv[]) { - int i2c_bus = PX4_I2C_BUS_EXPANSION; + int i2c_bus = 1; int myoptind = 1; int ch = 0;