forked from auracaster/openocd
jtag_get_device() now returns NULL and reports error instead of invoking exit()
git-svn-id: svn://svn.berlios.de/openocd/trunk@1176 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -3400,6 +3400,9 @@ target_configure( Jim_GetOptInfo *goi,
|
||||
if( e != JIM_OK ){
|
||||
return e;
|
||||
}
|
||||
if (jtag_get_device(w)==NULL)
|
||||
return JIM_ERR;
|
||||
|
||||
/* make this exactly 1 or 0 */
|
||||
target->chain_position = w;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user