This is an automated email from Gerrit.

"Jeremy Herbert <jeremy....@gmail.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8195

-- gerrit

commit eca12625e8ee1fd1733086d6aed83a185ac6b581
Author: Jeremy Herbert <jeremy....@gmail.com>
Date:   Sun Mar 31 14:50:20 2024 +1000

    remote_bitbang: Change sleep command to Z/z
    
    The remote_bitbang driver had conflicting commands introduced as there
    were multiple patches in the backlog. This changes the sleep functionality
    to use Z/z instead of D/d.
    
    Change-Id: Ic579efe0eab1f1f0897ecc06b89c56d4db5e5c47
    Signed-off-by: Jeremy Herbert <jeremy....@gmail.com>

diff --git a/doc/manual/jtag/drivers/remote_bitbang.txt 
b/doc/manual/jtag/drivers/remote_bitbang.txt
index 94d6038163..81b45e9a42 100644
--- a/doc/manual/jtag/drivers/remote_bitbang.txt
+++ b/doc/manual/jtag/drivers/remote_bitbang.txt
@@ -77,7 +77,7 @@ The read responses are encoded in ASCII as either digit 0 or 
1.
 If the use_remote_sleep option is set to 'yes', two additional requests may
 be sent:
 
-       D - Sleep for 1 millisecond
-       d - Sleep for 1 microsecond
+       Z - Sleep for 1 millisecond
+       z - Sleep for 1 microsecond
 
  */
diff --git a/src/jtag/drivers/remote_bitbang.c 
b/src/jtag/drivers/remote_bitbang.c
index c97b6b6abe..53d2151fdc 100644
--- a/src/jtag/drivers/remote_bitbang.c
+++ b/src/jtag/drivers/remote_bitbang.c
@@ -230,13 +230,13 @@ static int remote_bitbang_sleep(unsigned int microseconds)
        unsigned int us = microseconds % 1000;
 
        for (unsigned int i = 0; i < ms; i++) {
-               tmp = remote_bitbang_queue('D', NO_FLUSH);
+               tmp = remote_bitbang_queue('Z', NO_FLUSH);
                if (tmp != ERROR_OK)
                        return tmp;
        }
 
        for (unsigned int i = 0; i < us; i++) {
-               tmp = remote_bitbang_queue('d', NO_FLUSH);
+               tmp = remote_bitbang_queue('z', NO_FLUSH);
                if (tmp != ERROR_OK)
                        return tmp;
        }

-- 

Reply via email to