Skip to content
Snippets Groups Projects
Commit 5abeb095 authored by Adam Wujek's avatar Adam Wujek :speech_balloon:
Browse files

userspace/wrsw_hal: print error when hal mode not matched


Signed-off-by: default avatarAdam Wujek <adam.wujek@cern.ch>
parent 8da8a56c
Branches
Tags
No related merge requests found
......@@ -60,9 +60,11 @@ int hal_init_timing(char *filename)
tmo_init(&lock_tmo, LOCK_TIMEOUT_EXT, 0);
break;
default: /* never hit, but having it here prevents a warning */
pr_error("%s: Unable to determine HAL mode! Use BC as"
" default\n", __func__);
case HAL_TIMING_MODE_FREE_MASTER:
case HAL_TIMING_MODE_BC:
default: /* never hit, but having it here prevents a warning */
rts_set_mode(RTS_MODE_GM_FREERUNNING);
tmo_init(&lock_tmo, LOCK_TIMEOUT_INT, 0);
break;
......
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