summaryrefslogtreecommitdiff
path: root/src/target/embeddedice.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/embeddedice.c')
-rw-r--r--src/target/embeddedice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/embeddedice.c b/src/target/embeddedice.c
index 4d76bcaf..11f2e6c2 100644
--- a/src/target/embeddedice.c
+++ b/src/target/embeddedice.c
@@ -506,7 +506,7 @@ int embeddedice_handshake(arm_jtag_t *jtag_info, int hsbit, u32 timeout)
if (hsbit == EICE_COMM_CTRL_WBIT)
hsact = 1;
- else if (hsbit != EICE_COMM_CTRL_RBIT)
+ else if (hsbit == EICE_COMM_CTRL_RBIT)
hsact = 0;
else
return ERROR_INVALID_ARGUMENTS;