]> git.sur5r.net Git - openocd/blobdiff - contrib/remote_bitbang/remote_bitbang_sysfsgpio.c
remote_bitbang_sysfsgpio: fix reset handling
[openocd] / contrib / remote_bitbang / remote_bitbang_sysfsgpio.c
index e59a1bdeb59a92461a313933bf1763ce0100ddc8..6641307030d911149a35a591388227424ab09fdf 100644 (file)
@@ -302,7 +302,7 @@ static void process_remote_protocol(void)
                        break;
                else if (c == 'b' || c == 'B') /* Blink */
                        continue;
-               else if (c >= 'r' && c <= 'r' + 2) { /* Reset */
+               else if (c >= 'r' && c <= 'r' + 3) { /* Reset */
                        char d = c - 'r';
                        sysfsgpio_reset(!!(d & 2),
                                        (d & 1));