mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 07:13:35 +08:00
src: remove NuttX ifdefs around args
It doesn't look like they are required anymore.
This commit is contained in:
@@ -1137,12 +1137,9 @@ int GPS::task_spawn(int argc, char *argv[], Instance instance)
|
||||
|
||||
int GPS::run_trampoline_secondary(int argc, char *argv[])
|
||||
{
|
||||
|
||||
#ifdef __PX4_NUTTX
|
||||
// on NuttX task_create() adds the task name as first argument
|
||||
// the task name is the first argument
|
||||
argc -= 1;
|
||||
argv += 1;
|
||||
#endif
|
||||
|
||||
GPS *gps = instantiate(argc, argv, Instance::Secondary);
|
||||
if (gps) {
|
||||
|
||||
Reference in New Issue
Block a user