forked from Archive/PX4-Autopilot
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:
parent
d27694728b
commit
214e9c8244
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue