Skip to content
Snippets Groups Projects
Commit ae335f6b authored by Beat Küng's avatar Beat Küng
Browse files

Fixed using myoptarg instead of optarg

parent 550710d5
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,7 @@ lsm303agr_main(int argc, char *argv[])
while ((ch = px4_getopt(argc, argv, "XR:a:", &myoptind, &myoptarg)) != EOF) {
switch (ch) {
case 'R':
rotation = (enum Rotation)atoi(optarg);
rotation = (enum Rotation)atoi(myoptarg);
break;
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment