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

Fixed using myoptarg instead of optarg

parent 922c19aa
No related branches found
No related tags found
No related merge requests found
......@@ -1789,7 +1789,7 @@ adis16448_main(int argc, char *argv[])
while ((ch = px4_getopt(argc, argv, "R:", &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