From fa9504c77db4a47941e5a087cdb675c954a555ac Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 6 Oct 2013 19:54:24 +0000 Subject: finally fixed usbio for smaller usb-avrs git-svn-id: https://svn.spreadspace.org/avr/trunk@232 aa12f405-d877-488e-9caf-2d797e2a1cc7 --- lib/usbio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib') 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(); -- cgit v1.2.3