Skip to content
Snippets Groups Projects
Commit b719033d authored by Lorenz Meier's avatar Lorenz Meier Committed by Daniel Agar
Browse files

MK BL CTRL: Fix startup routine to be compliant with signature.

parent 652c9dfc
No related branches found
No related tags found
No related merge requests found
......@@ -177,8 +177,8 @@ private:
actuator_controls_s _controls;
MotorData_t Motor[MAX_MOTORS];
static void task_main_trampoline(int argc, char *argv[]);
void task_main();
static int task_main_trampoline(int argc, char *argv[]);
int task_main();
static int control_callback(uintptr_t handle,
uint8_t control_group,
......@@ -319,10 +319,10 @@ MK::init(unsigned motors)
return OK;
}
void
int
MK::task_main_trampoline(int argc, char *argv[])
{
g_mk->task_main();
return g_mk->task_main();
}
void
......@@ -458,7 +458,7 @@ MK::play_beep(int count)
}
void
int
MK::task_main()
{
int32_t param_mkblctrl_test = 0;
......@@ -664,7 +664,7 @@ MK::task_main()
/* tell the dtor that we are exiting */
_task = -1;
_exit(0);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment