- added check for max. value of jtag_speed in ft2232_khz.
git-svn-id: svn://svn.berlios.de/openocd/trunk@690 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
parent
bfc0ac58f8
commit
923fdc6ff6
|
@ -296,6 +296,12 @@ int ft2232_khz(int khz, int *jtag_speed)
|
||||||
*jtag_speed = 0;
|
*jtag_speed = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Check max value */
|
||||||
|
if (*jtag_speed > 0xFFFF)
|
||||||
|
{
|
||||||
|
*jtag_speed = 0xFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue