Merge branch 'master' of github.com:PX4/Firmware

This commit is contained in:
Lorenz Meier 2013-09-10 11:53:06 +02:00
commit 8d497b58f9
1 changed files with 3 additions and 3 deletions

View File

@ -590,9 +590,9 @@ rgbled_main(int argc, char *argv[])
errx(1, "Usage: rgbled rgb <red> <green> <blue>"); errx(1, "Usage: rgbled rgb <red> <green> <blue>");
} }
rgbled_rgbset_t v; rgbled_rgbset_t v;
v.red = strtol(argv[1], NULL, 0); v.red = strtol(argv[2], NULL, 0);
v.green = strtol(argv[2], NULL, 0); v.green = strtol(argv[3], NULL, 0);
v.blue = strtol(argv[3], NULL, 0); v.blue = strtol(argv[4], NULL, 0);
ret = ioctl(fd, RGBLED_SET_RGB, (unsigned long)&v); ret = ioctl(fd, RGBLED_SET_RGB, (unsigned long)&v);
close(fd); close(fd);
exit(ret); exit(ret);