-// UsbCommand ack = {CMD_ACK, {0, 0, 0}};\r
-\r
- for (i = 0; i < NES_MAX_INFO; i++) {\r
- if (nvectorcount[i] > 10) continue;\r
- \r
- for (j = 0; j < nvectorcount[i]; j += 5) {\r
- ncount = nvectorcount[i] - j;\r
- if (ncount > 5) ncount = 5; \r
-\r
-// ack.arg[0] = 0; // isEOF = 0\r
-// ack.arg[1] = ncount;\r
-// ack.arg[2] = targetBlockNo + (targetKeyType * 0x100);\r
-// memset(ack.d.asBytes, 0x00, sizeof(ack.d.asBytes));\r
- \r
- byte_t buf[48];\r
- memset(buf, 0x00, sizeof(buf));\r
- memcpy(buf, &cuid, 4);\r
- for (m = 0; m < ncount; m++) {\r
- memcpy(buf + 8 + m * 8 + 0, &nvector[i][m + j].nt, 4);\r
- memcpy(buf + 8 + m * 8 + 4, &nvector[i][m + j].ks1, 4);\r
- }\r
- \r
- LED_B_ON();\r
- cmd_send(CMD_ACK,0,ncount,targetBlockNo + (targetKeyType * 0x100),buf,48);\r
-// UsbSendPacket((uint8_t *)&ack, sizeof(UsbCommand));\r
- LED_B_OFF();\r
- }\r
- }\r
-\r
- // finalize list\r
-// ack.arg[0] = 1; // isEOF = 1\r
-// ack.arg[1] = 0;\r
-// ack.arg[2] = 0;\r
-// memset(ack.d.asBytes, 0x00, sizeof(ack.d.asBytes));\r
+ byte_t buf[4 + 4 * 4];\r
+ memcpy(buf, &cuid, 4);\r
+ memcpy(buf+4, &target_nt[0], 4);\r
+ memcpy(buf+8, &target_ks[0], 4);\r
+ memcpy(buf+12, &target_nt[1], 4);\r
+ memcpy(buf+16, &target_ks[1], 4);\r