diff --git a/openrtx/include/core/openrtx.h b/openrtx/include/core/openrtx.h index 369ed045..f181e797 100644 --- a/openrtx/include/core/openrtx.h +++ b/openrtx/include/core/openrtx.h @@ -34,6 +34,6 @@ void openrtx_init(); * This function returns only on linux emulator, when the main program terminates. * Return type is void* to make this function be used as a pthread thread body. */ -void *openrtx_run(); +void *openrtx_run(void *arg); #endif /* OPENRTX_H */ diff --git a/openrtx/src/core/openrtx.c b/openrtx/src/core/openrtx.c index 0e4ffe62..c7f2ad38 100644 --- a/openrtx/src/core/openrtx.c +++ b/openrtx/src/core/openrtx.c @@ -81,8 +81,10 @@ void openrtx_init() #endif } -void *openrtx_run() +void *openrtx_run(void *arg) { + (void) arg; + state.devStatus = RUNNING; // Start the OpenRTX threads diff --git a/openrtx/src/main.c b/openrtx/src/main.c index 778683bd..0a5ecbeb 100644 --- a/openrtx/src/main.c +++ b/openrtx/src/main.c @@ -47,7 +47,7 @@ int main(void) openrtx_init(); #ifndef PLATFORM_LINUX - openrtx_run(); + openrtx_run(NULL); #else // macOS requires SDL main loop to run on the main thread. // Here we create a new thread for OpenRTX main program and utilize the main diff --git a/openrtx/src/ui/default/ui.c b/openrtx/src/ui/default/ui.c index 816fb49d..79903fdc 100644 --- a/openrtx/src/ui/default/ui.c +++ b/openrtx/src/ui/default/ui.c @@ -106,7 +106,7 @@ extern void _ui_drawMenuBackupRestore(ui_state_t* ui_state); extern void _ui_drawMenuBackup(ui_state_t* ui_state); extern void _ui_drawMenuRestore(ui_state_t* ui_state); extern void _ui_drawMenuInfo(ui_state_t* ui_state); -extern void _ui_drawMenuAbout(); +extern void _ui_drawMenuAbout(ui_state_t* ui_state); #ifdef CONFIG_RTC extern void _ui_drawSettingsTimeDate(); extern void _ui_drawSettingsTimeDateSet(ui_state_t* ui_state); diff --git a/openrtx/src/ui/module17/ui.c b/openrtx/src/ui/module17/ui.c index 505c3ab6..52202bde 100644 --- a/openrtx/src/ui/module17/ui.c +++ b/openrtx/src/ui/module17/ui.c @@ -50,7 +50,7 @@ extern void _ui_drawSettingsGPS(ui_state_t* ui_state); #endif extern void _ui_drawMenuSettings(ui_state_t* ui_state); extern void _ui_drawMenuInfo(ui_state_t* ui_state); -extern void _ui_drawMenuAbout(); +extern void _ui_drawMenuAbout(ui_state_t* ui_state); #ifdef CONFIG_RTC extern void _ui_drawSettingsTimeDate(); extern void _ui_drawSettingsTimeDateSet(ui_state_t* ui_state); diff --git a/platform/targets/linux/emulator/emulator.c b/platform/targets/linux/emulator/emulator.c index 209fc16d..cb6a6f64 100644 --- a/platform/targets/linux/emulator/emulator.c +++ b/platform/targets/linux/emulator/emulator.c @@ -477,8 +477,10 @@ static int process_line(char *line) } } -void *startCLIMenu() +void *startCLIMenu(void *arg) { + (void) arg; + printf("\n\n"); char *histfile = ".emulatorsh_history"; shell_help(NULL, 0, NULL);