This is an automated email from Gerrit.

Andreas Fritiofson (andreas.fritiof...@gmail.com) just uploaded a new patch set 
to Gerrit, which you can find at http://openocd.zylin.com/3163

-- gerrit

commit 7024c3295706fea7e2c5e1f770ba85e10495f911
Author: Andreas Fritiofson <andreas.fritiof...@gmail.com>
Date:   Sun Dec 6 23:58:40 2015 +0100

    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 <andreas.fritiof...@gmail.com>

diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c
index 59b5e01..8911a6f 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);

-- 

------------------------------------------------------------------------------
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to