X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=blobdiff_plain;f=carlfw%2Fusb%2Fusb.c;h=4e387d74f974805c54c628cf15f7d6f0ac18e3c3;hp=12b487b278294b3e93e5901d6d2932c806ecdecd;hb=7e5d23505b1b54986ba66336dae9209b95fcd5e1;hpb=3890b79f7dde42f3be5963430b940bc61a29ee98 diff --git a/carlfw/usb/usb.c b/carlfw/usb/usb.c index 12b487b..4e387d7 100644 --- a/carlfw/usb/usb.c +++ b/carlfw/usb/usb.c @@ -696,8 +696,10 @@ void usb_ep0setup(void) if (status < 0) fw.usb.ep0_action |= CARL9170_EP0_STALL; +#ifdef CONFIG_CARL9170FW_USB_STANDARD_CMDS if (status > 0) fw.usb.ep0_action |= CARL9170_EP0_TRIGGER; +#endif /* CONFIG_CARL9170FW_USB_STANDARD_CMDS */ } void usb_ep0rx(void)