Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
544027da
Commit
544027da
authored
Jun 09, 2012
by
Dean Camera
Browse files
Fix RESET_TOGGLES_LIBUSB_COMPAT option not being applied in the AVRISP-MKII descriptors.
parent
61b5740a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Projects/AVRISP-MKII/AVRISPDescriptors.c
View file @
544027da
...
...
@@ -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
Projects/AVRISP-MKII/AVRISPDescriptors.h
View file @
544027da
...
...
@@ -41,6 +41,8 @@
#include
<LUFA/Drivers/USB/USB.h>
#include
<LUFA/Drivers/Board/LEDs.h>
#include
"Config/AppConfig.h"
/* Preprocessor Checks: */
#if defined(LIBUSB_DRIVER_COMPAT) && defined(RESET_TOGGLES_LIBUSB_COMPAT)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment