Fixed using myoptarg instead of optarg

Co-Authored-By: BazookaJoe1900 <BazookaJoe1900@gmail.com>
This commit is contained in:
Beat Küng
2019-02-18 20:14:22 +02:00
parent 922c19aa9c
commit 1ffacdc3c0

View File

@@ -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: