# HG changeset patch # User Edouard Tisserant # Date 1523543383 -7200 # Node ID 28a369bb26767caa083b64827ab205f219e7a6f9 # Parent dc9e6f97cd8ce04d5ce861fc35f8e67728f63a0e Apply new RT Pipes API from Xenomai 3 diff -r dc9e6f97cd8c -r 28a369bb2676 targets/Xenomai/plc_Xenomai_main.c --- a/targets/Xenomai/plc_Xenomai_main.c Thu Apr 12 16:27:22 2018 +0200 +++ b/targets/Xenomai/plc_Xenomai_main.c Thu Apr 12 16:29:43 2018 +0200 @@ -171,8 +171,8 @@ /*** RT Pipes creation and opening ***/ /* create Debug_pipe */ - if(rt_pipe_create(&Debug_pipe, "Debug_pipe", DEBUG_PIPE_MINOR, PIPE_SIZE)) goto error; + if(rt_pipe_create(&Debug_pipe, "Debug_pipe", DEBUG_PIPE_MINOR, PIPE_SIZE) < 0) PLC_state |= PLC_STATE_DEBUG_PIPE_CREATED; /* open Debug_pipe*/ @@ -180,8 +180,8 @@ PLC_state |= PLC_STATE_DEBUG_FILE_OPENED; /* create Python_pipe */ - if(rt_pipe_create(&Python_pipe, "Python_pipe", PYTHON_PIPE_MINOR, PIPE_SIZE)) goto error; + if(rt_pipe_create(&Python_pipe, "Python_pipe", PYTHON_PIPE_MINOR, PIPE_SIZE) < 0) PLC_state |= PLC_STATE_PYTHON_PIPE_CREATED; /* open Python_pipe*/ @@ -189,8 +189,8 @@ PLC_state |= PLC_STATE_PYTHON_FILE_OPENED; /* create WaitDebug_pipe */ - if(rt_pipe_create(&WaitDebug_pipe, "WaitDebug_pipe", WAITDEBUG_PIPE_MINOR, PIPE_SIZE)) goto error; + if(rt_pipe_create(&WaitDebug_pipe, "WaitDebug_pipe", WAITDEBUG_PIPE_MINOR, PIPE_SIZE) < 0) PLC_state |= PLC_STATE_WAITDEBUG_PIPE_CREATED; /* open WaitDebug_pipe*/ @@ -198,8 +198,8 @@ PLC_state |= PLC_STATE_WAITDEBUG_FILE_OPENED; /* create WaitPython_pipe */ - if(rt_pipe_create(&WaitPython_pipe, "WaitPython_pipe", WAITPYTHON_PIPE_MINOR, PIPE_SIZE)) goto error; + if(rt_pipe_create(&WaitPython_pipe, "WaitPython_pipe", WAITPYTHON_PIPE_MINOR, PIPE_SIZE) < 0) PLC_state |= PLC_STATE_WAITPYTHON_PIPE_CREATED; /* open WaitPython_pipe*/