瀏覽代碼

Fix RawHID on Teensy 2.0

main
PaulStoffregen 9 年之前
父節點
當前提交
b823fc14e3
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      usb_rawhid/usb.c
  2. +1
    -1
      usb_rawhid/usb_api.cpp

+ 1
- 1
usb_rawhid/usb.c 查看文件

@@ -73,7 +73,7 @@ static const uint8_t PROGMEM device_descriptor[] = {
};


static uint8_t PROGMEM rawhid_hid_report_desc[] = {
static const uint8_t PROGMEM rawhid_hid_report_desc[] = {
0x06, LSB(RAWHID_USAGE_PAGE), MSB(RAWHID_USAGE_PAGE),
0x0A, LSB(RAWHID_USAGE), MSB(RAWHID_USAGE),
0xA1, 0x01, // Collection 0x01

+ 1
- 1
usb_rawhid/usb_api.cpp 查看文件

@@ -32,7 +32,7 @@

int usb_rawhid_class::available(void)
{
uint8_t n=0, i, intr_state;
uint8_t n=0, intr_state;

intr_state = SREG;
cli();

Loading…
取消
儲存