From 5516ebf3cee3a92a5a8cb3da209997aeba5ea782 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Wed, 11 Apr 2018 21:14:37 -0700 Subject: [PATCH] one more ifdef --- board/drivers/usb.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/drivers/usb.h b/board/drivers/usb.h index 0e02a2b57cb28a..f2cffa1416e645 100644 --- a/board/drivers/usb.h +++ b/board/drivers/usb.h @@ -583,10 +583,12 @@ void usb_setup() { } USBx_OUTEP(0)->DOEPCTL |= USB_OTG_DOEPCTL_CNAK; break; + #ifdef PANDA case USB_DESC_TYPE_BINARY_OBJECT_STORE: USB_WritePacket(binary_object_store_desc, min(sizeof(binary_object_store_desc), setup.b.wLength.w), 0); USBx_OUTEP(0)->DOEPCTL |= USB_OTG_DOEPCTL_CNAK; break; + #endif default: // nothing here? USB_WritePacket(0, 0, 0);