From e639a8834c62c7f6fe84e51f92fc01c7f730308b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Mon, 18 Feb 2019 20:15:01 +0200 Subject: [PATCH] Fixed using myoptarg instead of optarg Co-Authored-By: BazookaJoe1900 --- src/drivers/imu/adis16477/ADIS16477_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/imu/adis16477/ADIS16477_main.cpp b/src/drivers/imu/adis16477/ADIS16477_main.cpp index 1386b93875..28de033010 100644 --- a/src/drivers/imu/adis16477/ADIS16477_main.cpp +++ b/src/drivers/imu/adis16477/ADIS16477_main.cpp @@ -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: