From: Andreas Fritiofson Date: Sun, 6 Dec 2015 22:58:40 +0000 (+0100) Subject: arm_adi_v5: Fix dap apsel confusing behaviour. X-Git-Tag: v0.10.0-rc1~303 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ff65aff3a6e1c58e948ec831eefcf8b277236fbd;p=openocd arm_adi_v5: Fix dap apsel confusing behaviour. Make dap apsel without arguments show current state instead of changing to AP 0. Change-Id: I75ea10e3e1b8a067f2dc417ec6691dc7ceec1af6 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/3163 Tested-by: jenkins Reviewed-by: Matthias Welwarsky --- diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index a28bc154..26948a40 100644 --- a/src/target/arm_adi_v5.c +++ b/src/target/arm_adi_v5.c @@ -1541,7 +1541,7 @@ COMMAND_HANDLER(dap_apsel_command) switch (CMD_ARGC) { case 0: - apsel = 0; + apsel = dap->apsel; break; case 1: COMMAND_PARSE_NUMBER(u32, CMD_ARGV[0], apsel);