Parse VID/PID as hex, fix 1962628

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1229 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Kolja Waschk 17 years ago
parent b02f7a12e2
commit cf6e302089

@ -1,3 +1,8 @@
2008-05-13 Kolja Waschk <kawk>
* src/tap/cable/generic_usbconn.c: Read VID/PID as hexadecimal, fixes
Bug [1962628] VID/PID for usbconn cables are parsed as decimal
2008-05-12 Kolja Waschk <kawk>
* doc/jtag.1: Explanation of [file] argument, correct location

@ -87,11 +87,11 @@ generic_usbconn_connect( char *params[], cable_t *cable )
{
if(strncasecmp("pid=", params[i], 4) == 0)
{
user_specified.pid = strtol( params[i] + 4, NULL, 10 );
user_specified.pid = strtol( params[i] + 4, NULL, 16 );
}
else if(strncasecmp("vid=", params[i], 4) == 0)
{
user_specified.vid = strtol( params[i] + 4, NULL, 10 );
user_specified.vid = strtol( params[i] + 4, NULL, 16 );
}
else if(strncasecmp("desc=", params[i], 5) == 0)
{

Loading…
Cancel
Save