hosted/jlink: fix bad line reset cmd building

extra memset set bits that were not set before code cleanup
This commit is contained in:
Rafael Silva 2022-08-08 16:32:59 +01:00 committed by Rachel Mant
parent a9bd23f076
commit 802c5fb87c
1 changed files with 0 additions and 2 deletions

View File

@ -56,9 +56,7 @@ static int line_reset(bmp_info_t *info)
/* write 19 Bytes.*/ /* write 19 Bytes.*/
cmd[2] = 19 * 8; cmd[2] = 19 * 8;
uint8_t *direction = cmd + 4; uint8_t *direction = cmd + 4;
memset(direction, 0, 5);
memset(direction + 5, 0xffU, 9); memset(direction + 5, 0xffU, 9);
memset(direction + 14, 0xffU, 4);
direction[18] = 0xe0; direction[18] = 0xe0;
uint8_t *data = direction + 19; uint8_t *data = direction + 19;
memset(data + 5, 0xffU, 7); memset(data + 5, 0xffU, 7);