Use an early-abort in the USB_DeviceTask() function rather than wrapping the entire implementation in a conditional.