mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 04:10:35 +08:00
rgbled: don't try the same bus twice
on PX4v1 the external I2C bus is the same as the LED bus
This commit is contained in:
committed by
Lorenz Meier
parent
e3fe443720
commit
14e2464fab
@@ -616,6 +616,9 @@ rgbled_main(int argc, char *argv[])
|
||||
|
||||
if (g_rgbled == nullptr) {
|
||||
// fall back to default bus
|
||||
if (PX4_I2C_BUS_LED == PX4_I2C_BUS_EXPANSION) {
|
||||
errx(1, "init failed");
|
||||
}
|
||||
i2cdevice = PX4_I2C_BUS_LED;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user