diff --git a/targets/riot-stm32f4/source/main-riotos.c b/targets/riot-stm32f4/source/main-riotos.c index e314f5c0fb..b22a076e82 100644 --- a/targets/riot-stm32f4/source/main-riotos.c +++ b/targets/riot-stm32f4/source/main-riotos.c @@ -16,7 +16,7 @@ #include #include "shell.h" -#include "jerry.h" +#include "jerry-api.h" /** * Jerryscript simple test @@ -30,11 +30,9 @@ int test_jerry (int argc, char **argv) printf ("This test run the following script code: [%s]\n\n", script); size_t script_size = strlen ((const char *) script); - jerry_completion_code_t return_code = jerry_run_simple (script, - script_size, - JERRY_FLAG_EMPTY); + bool ret_value = jerry_run_simple (script, script_size, JERRY_INIT_EMPTY); - return return_code; + return (ret_value ? 1 : 0); } /* test_jerry */ const shell_command_t shell_commands[] = {