PaulStoffregen 10 anos atrás
pai
commit
482a1f2b5f
1 arquivos alterados com 4 adições e 2 exclusões
  1. +4
    -2
      teensy3/usb_dev.c

+ 4
- 2
teensy3/usb_dev.c Ver arquivo

@@ -529,8 +529,10 @@ usb_packet_t *usb_rx(uint32_t endpoint)
if (endpoint >= NUM_ENDPOINTS) return NULL;
__disable_irq();
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();
//serial_print("rx, epidx=");
//serial_phex(endpoint);

Carregando…
Cancelar
Salvar