Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- With halcmd, cfg= string is one argument in 'do_loadrt_command':
- jepler@rat:~/src/linuxcnc$ halrun
- halcmd: loadrt hal_parport cfg="0 in"
- loadrt [0]cfg="0 in"
- Note: Using POSIX realtime
- config string '0 in'
- Linux parport #0 @0xc010 0xc000
- halcmd: Note: Using POSIX realtime
- with haltcl, cfg= string is split to two arguments in 'do_loadrt_command':
- jepler@rat:~/src/linuxcnc$ halrun -T
- haltcl: loadrt hal_parport cfg="0 in"
- loadrt [0]cfg="0 [1]in"
- Note: Using POSIX realtime
- Invalid paramter `in'
- /home/jepler/src/linuxcnc/bin/rtapi_app exited without becoming ready
- insmod failed, returned -1
- while evaluating {loadrt hal_parport cfg="0 in"}
- Patch to halcmd:
- diff --git a/src/hal/utils/halcmd_commands.c b/src/hal/utils/halcmd_commands.c
- index 3689555..ce0a4e1 100644
- --- a/src/hal/utils/halcmd_commands.c
- +++ b/src/hal/utils/halcmd_commands.c
- @@ -1057,6 +1057,10 @@ int do_status_cmd(char *type)
- int do_loadrt_cmd(char *mod_name, char *args[])
- {
- + printf("loadrt");
- + { int i; for(i=0; args[i] && *args[i]; i++) printf(" [%d]%s", i, args[i]); }
- + printf("\n");
- +
- char arg_string[MAX_CMD_LEN+1];
- int m=0, n=0, retval;
- hal_comp_t *comp;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement