LL40LS: Make commandline arguments easier to use

This commit is contained in:
Lorenz Meier 2016-12-28 15:07:56 +01:00
parent 9c2f4503a1
commit 381611bb66
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ test(const bool use_i2c, const int bus)
const char *path;
if (use_i2c) {
path = ((bus == PX4_I2C_BUS_EXPANSION) ? LL40LS_DEVICE_PATH_EXT : LL40LS_DEVICE_PATH_INT);
path = ((bus == -1 || bus == PX4_I2C_BUS_EXPANSION) ? LL40LS_DEVICE_PATH_EXT : LL40LS_DEVICE_PATH_INT);
} else {
path = LL40LS_DEVICE_PATH_PWM;