diff options
Diffstat (limited to 'src/target/target.c')
-rw-r--r-- | src/target/target.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/target/target.c b/src/target/target.c index 5e8cf74..79c97c2 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -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 { |