summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usb/generic.h7
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) {