Fixed USB_CurrentMode not being reset to USB_MODE_NONE when the USB interface is...
[pub/USBasp.git] / Projects / XPLAINBridge / XPLAINBridge.c
index 6d2556e..bd684b3 100644 (file)
@@ -8,7 +8,6 @@
 \r
 /*\r
   Copyright 2009  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
 \r
 /*\r
   Copyright 2009  Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
-  Copyright 2009  John Steggall (steggall.j@gmail.com)\r
 \r
   Permission to use, copy, modify, and distribute this software\r
   and its documentation for any purpose and without fee is hereby\r
 \r
   Permission to use, copy, modify, and distribute this software\r
   and its documentation for any purpose and without fee is hereby\r
@@ -119,6 +118,8 @@ void SetupHardware(void)
        SoftUART_Init();\r
        LEDs_Init();\r
        USB_Init();\r
        SoftUART_Init();\r
        LEDs_Init();\r
        USB_Init();\r
+       \r
+       PORTD |= (1 << 5); // PD5 is connected to the XMEGA /RESET, enable pullup\r
 }\r
 \r
 /** Event handler for the library USB Configuration Changed event. */\r
 }\r
 \r
 /** Event handler for the library USB Configuration Changed event. */\r