Commit 7632e812 authored by Alessandro Rubini's avatar Alessandro Rubini

arch-wrs: bugfix for non-wr builds (would fail at startup)

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent ccbd7115
......@@ -89,16 +89,16 @@ int main(int argc, char **argv)
usleep(WRSW_HAL_TIMEOUT);
}
if (!hal_ch) {
pp_printf("Fatal: could not connect to HAL");
exit(__LINE__);
if (BUILT_WITH_WHITERABBIT && !hal_ch) {
pp_printf("ppsi: could not connect to HAL RPC");
exit(1);
}
if (BUILT_WITH_WHITERABBIT) {
ppsi_ch = minipc_server_create("ptpd", 0);
if (!ppsi_ch) { /* FIXME should we retry ? */
pp_printf("Fatal: could not create minipc server");
exit(__LINE__);
pp_printf("ppsi: could not create minipc server");
exit(1);
}
wrs_init_ipcserver(ppsi_ch);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment