Commit 314f95c7 authored by Adam Wujek's avatar Adam Wujek 💬

bugfix for commit c552ec92 (userspace/wrsw_rtud)

bugfix for commit:
c552ec92 serspace/wrsw_rtud: Don't inform about waiting for HAL for 5 seconds

I forgot "!" at the beginning of condition
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 286bc226
......@@ -78,7 +78,7 @@ void init_shm(void)
int n_wait = 0;
/* wait forever for HAL */
while ((hal_head = wrs_shm_get(wrs_shm_hal, "",
while (!(hal_head = wrs_shm_get(wrs_shm_hal, "",
WRS_SHM_READ | WRS_SHM_LOCKED))) {
if (n_wait > 5) {
/* print if waiting more than 5 seconds, some waiting
......
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