diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-02-09 21:34:00 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-02-09 21:34:00 +0000 |
commit | cae0fa73d70f82820bd8d71c4d60b6aff8ccf3cb (patch) | |
tree | 70c6ff1ac26daee3afb8742cb1c2b4c05c460c01 /Bootloaders/CDC | |
parent | 5430e1973ce21f4bc558257855a06baf6a28217c (diff) | |
download | lufa-cae0fa73d70f82820bd8d71c4d60b6aff8ccf3cb.tar.gz lufa-cae0fa73d70f82820bd8d71c4d60b6aff8ccf3cb.tar.bz2 lufa-cae0fa73d70f82820bd8d71c4d60b6aff8ccf3cb.zip |
Added HID class bootloader, compatible with a modified version of the command line Teensy loader from PJRC.com.
Diffstat (limited to 'Bootloaders/CDC')
-rw-r--r-- | Bootloaders/CDC/BootloaderCDC.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Bootloaders/CDC/BootloaderCDC.c b/Bootloaders/CDC/BootloaderCDC.c index 0f7b266fc..cb6619edb 100644 --- a/Bootloaders/CDC/BootloaderCDC.c +++ b/Bootloaders/CDC/BootloaderCDC.c @@ -127,6 +127,13 @@ void EVENT_USB_Device_ConfigurationChanged(void) */ void EVENT_USB_Device_ControlRequest(void) { + /* Ignore any requests that aren't directed to the CDC interface */ + if ((USB_ControlRequest.bmRequestType & (CONTROL_REQTYPE_TYPE | CONTROL_REQTYPE_RECIPIENT)) != + (REQTYPE_CLASS | REQREC_INTERFACE)) + { + return; + } + /* Process CDC specific control requests */ switch (USB_ControlRequest.bRequest) { |