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:15:01 +02:00
parent 1ffacdc3c0
commit e639a8834c
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ adis16477_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: