diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-25 09:03:08 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-27 09:07:53 +0200 |
commit | d3261069806e3ecb9627f273fcb58c68e5523ac7 (patch) | |
tree | 39abf3b22c9a25f5b293e75f49604bfb5bd9235e /src/drivers/rgbled/rgbled.cpp | |
parent | ebaac07ab2662c9ae443a69d8e0fd12f07b6f5e6 (diff) | |
download | px4-firmware-d3261069806e3ecb9627f273fcb58c68e5523ac7.tar.gz px4-firmware-d3261069806e3ecb9627f273fcb58c68e5523ac7.tar.bz2 px4-firmware-d3261069806e3ecb9627f273fcb58c68e5523ac7.zip |
RGB led: Let user know we just did not find one
Diffstat (limited to 'src/drivers/rgbled/rgbled.cpp')
-rw-r--r-- | src/drivers/rgbled/rgbled.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/rgbled/rgbled.cpp b/src/drivers/rgbled/rgbled.cpp index 1e38a766e..512d6318d 100644 --- a/src/drivers/rgbled/rgbled.cpp +++ b/src/drivers/rgbled/rgbled.cpp @@ -625,7 +625,7 @@ 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"); + errx(1, "no RGB led on bus #%d", i2cdevice); } i2cdevice = PX4_I2C_BUS_LED; } @@ -640,7 +640,7 @@ rgbled_main(int argc, char *argv[]) if (OK != g_rgbled->init()) { delete g_rgbled; g_rgbled = nullptr; - errx(1, "init failed"); + errx(1, "no RGB led on bus #%d", i2cdevice); } } |