jtag/drivers: correct the angie_reset function
remove angie_clear_queue function from executing before the angie_execute_queued_commands function and making it at the end of the reset function. Change-Id: Id8a0664fbd5b8f9730545ce0f8f272ae0b0e7e78 Signed-off-by: Ahmed BOUDJELIDA <aboudjelida@nanoxplore.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7990 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
da6c0e45a2
commit
974e29aef6
|
@ -1725,14 +1725,16 @@ static int angie_reset(int trst, int srst)
|
|||
high |= SIGNAL_SRST;
|
||||
|
||||
int ret = angie_append_set_signals_cmd(device, low, high);
|
||||
if (ret == ERROR_OK)
|
||||
angie_clear_queue(device);
|
||||
if (ret != ERROR_OK)
|
||||
return ret;
|
||||
|
||||
ret = angie_execute_queued_commands(device, LIBUSB_TIMEOUT_MS);
|
||||
if (ret == ERROR_OK)
|
||||
angie_clear_queue(device);
|
||||
if (ret != ERROR_OK)
|
||||
return ret;
|
||||
|
||||
return ret;
|
||||
angie_clear_queue(device);
|
||||
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue