From 2f0ec3589ac3bda7970c9c055b19d0fe1ccc1c4c Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 15 Mar 2014 21:33:43 +0000 Subject: upgraded avr utils git-svn-id: https://svn.spreadspace.org/mur.sat@881 7de4ea59-55d0-425e-a1af-a3118ea81d4c --- software/avr.lib/usbio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'software/avr.lib/usbio.c') diff --git a/software/avr.lib/usbio.c b/software/avr.lib/usbio.c index 6a7f76e..6f15b53 100644 --- a/software/avr.lib/usbio.c +++ b/software/avr.lib/usbio.c @@ -83,10 +83,12 @@ void usbio_init(void) 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()) { USB_Disable(); USB_Init(); } +#endif CDC_Device_USBTask(&VirtualSerial_CDC_Interface); USB_USBTask(); -- cgit v1.2.3