diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/usbio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/usbio.c b/lib/usbio.c index 72151bc..6f15b53 100644 --- a/lib/usbio.c +++ b/lib/usbio.c @@ -85,12 +85,10 @@ void usbio_task(void) { #if defined(USB_SERIES_4_AVR) || defined(USB_SERIES_6_AVR) || defined(USB_SERIES_7_AVR) if(USB_DeviceState == DEVICE_STATE_Unattached && USB_VBUS_GetStatus()) { -#else - if(USB_DeviceState == DEVICE_STATE_Unattached) { -#endif USB_Disable(); USB_Init(); } +#endif CDC_Device_USBTask(&VirtualSerial_CDC_Interface); USB_USBTask(); |