mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-05 05:11:35 +08:00
LL40LS: Make commandline arguments easier to use
This commit is contained in:
@@ -291,7 +291,7 @@ test(const bool use_i2c, const int bus)
|
|||||||
const char *path;
|
const char *path;
|
||||||
|
|
||||||
if (use_i2c) {
|
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 {
|
} else {
|
||||||
path = LL40LS_DEVICE_PATH_PWM;
|
path = LL40LS_DEVICE_PATH_PWM;
|
||||||
|
|||||||
Reference in New Issue
Block a user