浏览代码

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

teensy4-core
PaulStoffregen 4 年前
父节点
当前提交
08693a6829
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      teensy3/usb_dev.c

+ 1
- 1
teensy3/usb_dev.c 查看文件

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

正在加载...
取消
保存