Fixed broken USE_RAM_DESCRIPTORS compile time option when the FIXED_NUM_CONFIGURATION...
authorDean Camera <dean@fourwalledcubicle.com>
Tue, 15 Dec 2015 10:49:05 +0000 (21:49 +1100)
committerDean Camera <dean@fourwalledcubicle.com>
Tue, 15 Dec 2015 10:49:05 +0000 (21:49 +1100)
LUFA/DoxygenPages/ChangeLog.txt
LUFA/Drivers/USB/Core/DeviceStandardReq.c

index 2d86ec1..eac7d42 100644 (file)
@@ -11,6 +11,8 @@
   *  - Core:
   *   - The CALLBACK_USB_GetDescriptor() callback function into the user application erroneously had a uint8_t type for the wIndex
   *     parameter, instead of uint16_t (thanks to Matlo)
+  *   - Fixed broken USE_RAM_DESCRIPTORS compile time option when the FIXED_NUM_CONFIGURATIONS compile time option is not enabled
+  *     in a user application (thanks to Matlo)
   *
   *  \section Sec_ChangeLog151115 Version 151115
   *  <b>New:</b>
index a730711..8315815 100644 (file)
@@ -152,8 +152,8 @@ static void USB_Device_SetConfiguration(void)
                        #define MemoryAddressSpace  MEMSPACE_FLASH
                #elif defined(USE_EEPROM_DESCRIPTORS)
                        #define MemoryAddressSpace  MEMSPACE_EEPROM
-               #elif defined(USE_SRAM_DESCRIPTORS)
-                       #define MemoryAddressSpace  MEMSPACE_SRAM
+               #elif defined(USE_RAM_DESCRIPTORS)
+                       #define MemoryAddressSpace  MEMSPACE_RAM
                #else
                        uint8_t MemoryAddressSpace;
                #endif