From 802c5fb87c4e1da43815742acdbd4a0121350fac Mon Sep 17 00:00:00 2001 From: Rafael Silva Date: Mon, 8 Aug 2022 16:32:59 +0100 Subject: [PATCH] hosted/jlink: fix bad line reset cmd building extra memset set bits that were not set before code cleanup --- src/platforms/hosted/jlink_adiv5_swdp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/platforms/hosted/jlink_adiv5_swdp.c b/src/platforms/hosted/jlink_adiv5_swdp.c index df58122..d1e21e5 100644 --- a/src/platforms/hosted/jlink_adiv5_swdp.c +++ b/src/platforms/hosted/jlink_adiv5_swdp.c @@ -56,9 +56,7 @@ static int line_reset(bmp_info_t *info) /* write 19 Bytes.*/ cmd[2] = 19 * 8; uint8_t *direction = cmd + 4; - memset(direction, 0, 5); memset(direction + 5, 0xffU, 9); - memset(direction + 14, 0xffU, 4); direction[18] = 0xe0; uint8_t *data = direction + 19; memset(data + 5, 0xffU, 7);