chg: usb_cdc, it should be similar to official pm3. lets

This commit is contained in:
iceman1001 2017-10-19 13:06:47 +02:00
commit 3b665be5fc
2 changed files with 76 additions and 55 deletions

View file

@ -84,11 +84,11 @@ static void Fatal(void) {
}
void UsbPacketReceived(uint8_t *packet, int len) {
int i, dont_ack=0;
int i, dont_ack = 0;
UsbCommand* c = (UsbCommand *)packet;
volatile uint32_t *p;
if ( len != sizeof(UsbCommand)) Fatal();
//if ( len != sizeof(UsbCommand)) Fatal();
uint32_t arg0 = (uint32_t)c->arg[0];