We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 036246b commit a9a4892Copy full SHA for a9a4892
pyocd/probe/pydapaccess/dap_access_cmsis_dap.py
@@ -312,7 +312,7 @@ def _encode_transfer_data(self):
312
buf[pos] = (write_list[write_pos] >> (8 * 3)) & 0xff
313
pos += 1
314
write_pos += 1
315
- return buf
+ return buf[:pos]
316
317
def _check_response(self, response):
318
"""! @brief Check the response status byte from CMSIS-DAP transfer commands.
@@ -402,7 +402,7 @@ def _encode_transfer_block_data(self):
402
403
404
405
406
407
def _decode_transfer_block_data(self, data):
408
"""! @brief Take a byte array and extract the data from it
0 commit comments