PaulStoffregen 10 years ago
parent
commit
482a1f2b5f
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      teensy3/usb_dev.c

+ 4
- 2
teensy3/usb_dev.c View File

if (endpoint >= NUM_ENDPOINTS) return NULL; if (endpoint >= NUM_ENDPOINTS) return NULL;
__disable_irq(); __disable_irq();
ret = rx_first[endpoint]; ret = rx_first[endpoint];
if (ret) rx_first[endpoint] = ret->next;
usb_rx_byte_count_data[endpoint] -= ret->len;
if (ret) {
rx_first[endpoint] = ret->next;
usb_rx_byte_count_data[endpoint] -= ret->len;
}
__enable_irq(); __enable_irq();
//serial_print("rx, epidx="); //serial_print("rx, epidx=");
//serial_phex(endpoint); //serial_phex(endpoint);

Loading…
Cancel
Save