memcpy(c.d.asBytes, str, c.arg[0]);\r
\r
UsbSendPacket((BYTE *)&c, sizeof(c));\r
memcpy(c.d.asBytes, str, c.arg[0]);\r
\r
UsbSendPacket((BYTE *)&c, sizeof(c));\r
void UsbPacketReceived(BYTE *packet, int len)\r
{\r
UsbCommand *c = (UsbCommand *)packet;\r
void UsbPacketReceived(BYTE *packet, int len)\r
{\r
UsbCommand *c = (UsbCommand *)packet;\r
BYTE *b = (BYTE *)BigBuf;\r
memcpy(b+c->arg[0], c->d.asBytes, 48);\r
//Dbprintf("copied 48 bytes to %i",b+c->arg[0]);\r
BYTE *b = (BYTE *)BigBuf;\r
memcpy(b+c->arg[0], c->d.asBytes, 48);\r
//Dbprintf("copied 48 bytes to %i",b+c->arg[0]);\r