mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 07:53:34 +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:
@@ -122,7 +122,7 @@ private:
|
||||
unsigned _tail;
|
||||
uint8_t _buf[BUF_LEN];
|
||||
|
||||
static void task_main_trampoline(int argc, char *argv[]);
|
||||
static int task_main_trampoline(int argc, char *argv[]);
|
||||
void task_main();
|
||||
|
||||
bool read_and_parse(uint8_t *buf, int len, float *range);
|
||||
@@ -299,10 +299,11 @@ Radar::init()
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
Radar::task_main_trampoline(int argc, char *argv[])
|
||||
{
|
||||
radar::g_dev->task_main();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user