From fa664f8b46788f60961ed5b2ed878e10cea5236e Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 12 Aug 2012 13:25:27 +0000 Subject: [PATCH] Fixed broken RESET_TOGGLES_LIBUSB_COMPAT compile time option in the AVRISP-MKII project. --- LUFA/DoxygenPages/ChangeLog.txt | 18 +++++++++++++++++- Projects/AVRISP-MKII/AVRISPDescriptors.h | 10 +++++----- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/LUFA/DoxygenPages/ChangeLog.txt b/LUFA/DoxygenPages/ChangeLog.txt index bbe2276b0c..ed0e9e8df3 100644 --- a/LUFA/DoxygenPages/ChangeLog.txt +++ b/LUFA/DoxygenPages/ChangeLog.txt @@ -7,7 +7,23 @@ /** \page Page_ChangeLog Project Changelog * * \section Sec_ChangeLogXXXXXX Version XXXXXX - * - No Changes. + * New: + * - Core: + * - None + * - Library Applications: + * - None + * + * Changed: + * - Core: + * - None + * - Library Applications: + * - None + * + * Fixed: + * - Core: + * - None + * - Library Applications: + * - Fixed broken RESET_TOGGLES_LIBUSB_COMPAT compile time option in the AVRISP-MKII project * * \section Sec_ChangeLog120730 Version 120730 * New: diff --git a/Projects/AVRISP-MKII/AVRISPDescriptors.h b/Projects/AVRISP-MKII/AVRISPDescriptors.h index a14515d5e4..20725c5253 100644 --- a/Projects/AVRISP-MKII/AVRISPDescriptors.h +++ b/Projects/AVRISP-MKII/AVRISPDescriptors.h @@ -59,13 +59,13 @@ /** Endpoint address of the AVRISP data IN endpoint, when in LibUSB driver compatibility mode. */ #define AVRISP_DATA_IN_EPADDR_LIBUSB (ENDPOINT_DIR_IN | 3) - #if !defined(LIBUSB_DRIVER_COMPAT) || defined(__DOXYGEN__) - /** Endpoint address of the AVRISP data IN endpoint. */ - #define AVRISP_DATA_IN_EPADDR AVRISP_DATA_IN_EPADDR_JUNGO - #elif defined(RESET_TOGGLES_LIBUSB_COMPAT) + #if defined(RESET_TOGGLES_LIBUSB_COMPAT) #define AVRISP_DATA_IN_EPADDR AVRISP_CurrDataINEndpointAddress - #else + #elif defined(LIBUSB_DRIVER_COMPAT) #define AVRISP_DATA_IN_EPADDR AVRISP_DATA_IN_EPADDR_LIBUSB + #else + /** Endpoint address of the AVRISP data IN endpoint. */ + #define AVRISP_DATA_IN_EPADDR AVRISP_DATA_IN_EPADDR_JUNGO #endif /** Size in bytes of the AVRISP data endpoint. */