Hi    I found a bug that cause old command doesn't work on lastest 
svn code: "cable jlink vid=0403 pid=6010 driver=ftdi-mpsse" , it work on old 
version r1458.   cmd_cable_run ->
urj_param_push -> parse_param_lu can't accept Hex format number,
only Dec. so my command "cable jlink vid=0403 pid=6010
driver=ftdi-mpsse" in old version r1458, identify "0403" as Hex, but
now as Dec.    But current version code can't accept Hex in 
parse_param_lu, even I use "cable jlink vid=0x0403 pid=0x6010
driver=ftdi-mpsse", I suggest just call urj_cmd_get_number() function here 
likeIndex: 
src/global/params.c===================================================================---
 src/global/params.c    +++ 
src/global/params.c    @@ -177,14 +177,19 
@@     return URJ_STATUS_OK; } +extern int 
urj_cmd_get_number (const char *s, long unsigned *i); static 
int parse_param_lu(const char *eq, long unsigned *lu) {+#if 
0     if (sscanf(eq + 1, "%lu", lu) == 
1)         return 
URJ_STATUS_OK;      urj_error_set (URJ_ERROR_SYNTAX, 
"need unsigned int, not '%s'", eq + 1);     return 
URJ_STATUS_FAIL;+#else+    return urj_cmd_get_number( eq + 1, 
lu);+#endif  }or copy Hex format identify code here from urj_cmd_get_number
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
UrJTAG-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/urjtag-development

Reply via email to