Skip to content

Commit

Permalink
one more ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Apr 12, 2018
1 parent cac7b31 commit 5516ebf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions board/drivers/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5516ebf

Please sign in to comment.