aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/AVRISP-MKII/AVRISPDescriptors.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-06-09 19:47:14 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-06-09 19:47:14 +0000
commit544027da185fbfb51461460c607f956ccee9e54b (patch)
tree1fbed05bd2ad780cbef57424f63c0d951a62d182 /Projects/AVRISP-MKII/AVRISPDescriptors.c
parent61b5740a2525ca0ecf747ed1e5cb3221d6deec67 (diff)
downloadlufa-544027da185fbfb51461460c607f956ccee9e54b.tar.gz
lufa-544027da185fbfb51461460c607f956ccee9e54b.tar.bz2
lufa-544027da185fbfb51461460c607f956ccee9e54b.zip
Fix RESET_TOGGLES_LIBUSB_COMPAT option not being applied in the AVRISP-MKII descriptors.
Diffstat (limited to 'Projects/AVRISP-MKII/AVRISPDescriptors.c')
-rw-r--r--Projects/AVRISP-MKII/AVRISPDescriptors.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Projects/AVRISP-MKII/AVRISPDescriptors.c b/Projects/AVRISP-MKII/AVRISPDescriptors.c
index f3381e121..ab30c0eaf 100644
--- a/Projects/AVRISP-MKII/AVRISPDescriptors.c
+++ b/Projects/AVRISP-MKII/AVRISPDescriptors.c
@@ -38,6 +38,7 @@
#include "AVRISPDescriptors.h"
#if defined(RESET_TOGGLES_LIBUSB_COMPAT) || defined(__DOXYGEN__)
+ /** Indicates if an external reset has ocurred and the compatibility mode needs to be altered */
static bool AVRISP_NeedCompatibilitySwitch ATTR_NO_INIT;
/** Current AVRISP data IN endpoint address. */
@@ -207,7 +208,8 @@ uint16_t AVRISP_GetDescriptor(const uint16_t wValue,
break;
case DTYPE_Configuration:
*DescriptorMemorySpace = MEMSPACE_RAM;
- #if defined(RESET_TOGGLES_LIBUSB_COMPAT)
+ #if defined(RESET_TOGGLES_LIBUSB_COMPAT)
+ /* Update the configuration descriptor with the current endpoint address */
AVRISP_ConfigurationDescriptor.AVRISP_DataInEndpoint.EndpointAddress = AVRISP_CurrDataINEndpointAddress;
#endif
@@ -307,5 +309,7 @@ void UpdateCurrentCompatibilityMode(void)
}
break;
}
+
+ Delay_MS(500);
}
#endif