diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-03 13:44:39 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-02-09 22:56:21 +0100 |
commit | 21bc9e4839fb8ffed3b64039a28b7103c31d2449 (patch) | |
tree | a761a3822a30b172b7d0da17ada9f1cb438c42e8 | |
parent | 6e4b95e844e0e24c65ee5166d3d214957e3be9e6 (diff) | |
download | px4-firmware-21bc9e4839fb8ffed3b64039a28b7103c31d2449.tar.gz px4-firmware-21bc9e4839fb8ffed3b64039a28b7103c31d2449.tar.bz2 px4-firmware-21bc9e4839fb8ffed3b64039a28b7103c31d2449.zip |
BlinkM: Move to 0-based index
-rw-r--r-- | src/drivers/blinkm/blinkm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/blinkm/blinkm.cpp b/src/drivers/blinkm/blinkm.cpp index d0253a8d1..d749a0d7b 100644 --- a/src/drivers/blinkm/blinkm.cpp +++ b/src/drivers/blinkm/blinkm.cpp @@ -275,7 +275,7 @@ const char *const BlinkM::script_names[] = { extern "C" __EXPORT int blinkm_main(int argc, char *argv[]); BlinkM::BlinkM(int bus, int blinkm) : - I2C("blinkm", BLINKM_DEVICE_PATH, bus, blinkm, 100000), + I2C("blinkm", BLINKM0_DEVICE_PATH, bus, blinkm, 100000), led_color_1(LED_OFF), led_color_2(LED_OFF), led_color_3(LED_OFF), @@ -1002,7 +1002,7 @@ blinkm_main(int argc, char *argv[]) } /* things that require access to the device */ - int fd = open(BLINKM_DEVICE_PATH, 0); + int fd = open(BLINKM0_DEVICE_PATH, 0); if (fd < 0) err(1, "can't open BlinkM device"); |