ll40ls: Fix rotation argument parse bug

Before (introduced in 7b16c3482d), there was no colon after
the `R` argument in the options specification string (ab:R).

The R should be followed by a colon, because in indicates that
the R option requires an argument, which it does.

So I added a colon.
This commit is contained in:
Morten Fyhn Amundsen 2019-11-27 16:11:23 +01:00 committed by Kabir Mohammed
parent d27694728b
commit 214e9c8244
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ extern "C" __EXPORT int ll40ls_main(int argc, char *argv[])
bool start_i2c_all = false;
bool start_pwm = false;
while ((ch = px4_getopt(argc, argv, "ab:R", &myoptind, &myoptarg)) != EOF) {
while ((ch = px4_getopt(argc, argv, "ab:R:", &myoptind, &myoptarg)) != EOF) {
switch (ch) {
case 'a':
start_i2c_all = true;