for disabling TAPs. We don't actually know how to make any
JRCs which do that yet; but when we do, this will matter.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2735
b42882b7-edfa-0310-969c-
e2dbd0fdcd60
Jim_GetString(jteap->body, NULL));
if (Jim_EvalObj(interp, jteap->body) != JIM_OK) {
Jim_PrintErrorMessage(interp);
- } else {
+ } else switch (e) {
+ case JTAG_TAP_EVENT_ENABLE:
+ case JTAG_TAP_EVENT_DISABLE:
/* NOTE: we currently assume the handlers
* can't fail. That presumes later code
* will be verifying the scan chains ...
*/
- if (e == JTAG_TAP_EVENT_ENABLE)
- tap->enabled = true;
+ tap->enabled = (e == JTAG_TAP_EVENT_ENABLE);
+ break;
+ default:
+ break;
}
}