Sfoglia il codice sorgente

Fix ack to HID serial emulation startup feature report on Teensy 3

main
PaulStoffregen 4 anni fa
parent
commit
08693a6829
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      teensy3/usb_dev.c

+ 1
- 1
teensy3/usb_dev.c Vedi File

if (setup.word1 == 0x03000921 && setup.word2 == ((4<<16)|SEREMU_INTERFACE)) { if (setup.word1 == 0x03000921 && setup.word2 == ((4<<16)|SEREMU_INTERFACE)) {
if (buf[0] == 0xA9 && buf[1] == 0x45 && buf[2] == 0xC2 && buf[3] == 0x6B) { if (buf[0] == 0xA9 && buf[1] == 0x45 && buf[2] == 0xC2 && buf[3] == 0x6B) {
usb_reboot_timer = 5; usb_reboot_timer = 5;
endpoint0_transmit(NULL, 0);
} else { } else {
usb_seremu_online = 1; usb_seremu_online = 1;
} }
endpoint0_transmit(NULL, 0);
} }
#endif #endif
#ifdef AUDIO_INTERFACE #ifdef AUDIO_INTERFACE

Loading…
Annulla
Salva