diff --git a/flight/PiOS/STM32F10x/pios_usb.c b/flight/PiOS/STM32F10x/pios_usb.c index c7b2855da..ea279233c 100644 --- a/flight/PiOS/STM32F10x/pios_usb.c +++ b/flight/PiOS/STM32F10x/pios_usb.c @@ -222,7 +222,6 @@ bool PIOS_USB_CheckAvailable(uint8_t id) return 0; usb_found = (usb_dev->cfg->vsense.gpio->IDR & usb_dev->cfg->vsense.init.GPIO_Pin); - return usb_found; return usb_found != 0 && transfer_possible ? 1 : 0; }