diff options
| author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-09-22 12:47:06 +0200 | 
|---|---|---|
| committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-09-22 12:47:06 +0200 | 
| commit | 95729b7fd4de6704823ab8033593abe352134916 (patch) | |
| tree | cf5873d0a987cef205ffd19237be93ead47dbeca /usb | |
| parent | d6af5ec06d3446970647876a70803e2e6444a19e (diff) | |
Handling SET_INTERFACE.
Diffstat (limited to 'usb')
| -rw-r--r-- | usb/generic.h | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/usb/generic.h b/usb/generic.h index 136cbc4..87fe089 100644 --- a/usb/generic.h +++ b/usb/generic.h @@ -174,6 +174,13 @@ class USB_generic {  				}  			} +			// SET_INTERFACE +			if(bmRequestType == 0x01 && bRequest == 0x0b) { +				// TODO: Don't ignore this request. +				write(0, nullptr, 0); +				return; +			} +			  			SetupStatus res = SetupStatus::Unhandled;  			for(USB_class_driver*& driver : class_drivers) { | 
