Fix #1499 hf 15 restore and fix trace list -t 15 writeblock

This commit is contained in:
Philippe Teuwen 2021-09-07 10:04:01 +02:00
parent c326c25905
commit 3e39689b6e
3 changed files with 7 additions and 4 deletions

View file

@ -2028,7 +2028,7 @@ static int CmdHF15Restore(const char *Cmd) {
uint16_t i = 0;
while (bytes < datalen) {
req[reqlen + 1] = i;
req[reqlen] = i;
// copy over the data to the request
memcpy(req + reqlen + 1, data + bytes, blocksize);
AddCrc15(req, reqlen + 1 + blocksize);