\r
DWORD written;\r
OVERLAPPED ov;\r
+\r
memset(&ov, 0, sizeof(ov));\r
WriteFile(UsbHandle, buf, 65, &written, &ov);\r
if(GetLastError() != ERROR_IO_PENDING) {\r
UsbCommand c;\r
memset(&c, 0, sizeof(c));\r
\r
- printf("expected = %08x flush, ", ExpectedAddr);\r
-\r
int i;\r
for(i = 0; i < 240; i += 48) {\r
c.cmd = CMD_SETUP_WRITE;\r
\r
c.cmd = CMD_FINISH_WRITE;\r
c.ext1 = (ExpectedAddr-1) & (~255);\r
- printf("c.ext1 = %08x\r", c.ext1);\r
+ printf("Flashing address: %08x\r", c.ext1);\r
memcpy(c.d.asBytes, QueuedToSend+240, 16);\r
SendCommand(&c, TRUE);\r
\r