forked from Archive/PX4-Autopilot
LL40LS: Make commandline arguments easier to use
This commit is contained in:
parent
9c2f4503a1
commit
381611bb66
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue