Revert argc change reqquired for NuttX

This commit is contained in:
Lorenz Meier
2016-03-29 22:47:48 +02:00
parent 3464648533
commit bc39cae5a3

View File

@@ -936,6 +936,12 @@ int sdlog2_thread_main(int argc, char *argv[])
flag_system_armed = false;
#ifdef __PX4_NUTTX
/* work around some stupidity in NuttX's task_create's argv handling */
argc -= 2;
argv += 2;
#endif
int ch;
/* don't exit from getopt loop to leave getopt global variables in consistent state,