mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 05:10:35 +08:00
px4_main_t: fix method declaration throughout the code base
px4_main_t is defined as: typedef int (*px4_main_t)(int argc, char *argv[]); which matches with the definition in NuttX, given to task_create
This commit is contained in:
@@ -134,7 +134,7 @@ public:
|
||||
/**
|
||||
* task spawn trampoline for the secondary GPS
|
||||
*/
|
||||
static void run_trampoline_secondary(int argc, char *argv[]);
|
||||
static int run_trampoline_secondary(int argc, char *argv[]);
|
||||
|
||||
/** @see ModuleBase::run() */
|
||||
void run() override;
|
||||
@@ -997,7 +997,7 @@ int GPS::task_spawn(int argc, char *argv[], Instance instance)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void GPS::run_trampoline_secondary(int argc, char *argv[])
|
||||
int GPS::run_trampoline_secondary(int argc, char *argv[])
|
||||
{
|
||||
|
||||
#ifdef __PX4_NUTTX
|
||||
@@ -1014,6 +1014,7 @@ void GPS::run_trampoline_secondary(int argc, char *argv[])
|
||||
_secondary_instance = nullptr;
|
||||
delete gps;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
GPS *GPS::instantiate(int argc, char *argv[])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user