Fixed broken USE_RAM_DESCRIPTORS compile time option when the FIXED_NUM_CONFIGURATIONS compile time option is not enabled (thanks to Matlo).

pull/1469/head
Dean Camera 9 years ago
parent 92e9cb71e2
commit 40e1caa2da

@ -11,6 +11,8 @@
* - Core: * - Core:
* - The CALLBACK_USB_GetDescriptor() callback function into the user application erroneously had a uint8_t type for the wIndex * - 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) * 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 * \section Sec_ChangeLog151115 Version 151115
* <b>New:</b> * <b>New:</b>

@ -152,8 +152,8 @@ static void USB_Device_SetConfiguration(void)
#define MemoryAddressSpace MEMSPACE_FLASH #define MemoryAddressSpace MEMSPACE_FLASH
#elif defined(USE_EEPROM_DESCRIPTORS) #elif defined(USE_EEPROM_DESCRIPTORS)
#define MemoryAddressSpace MEMSPACE_EEPROM #define MemoryAddressSpace MEMSPACE_EEPROM
#elif defined(USE_SRAM_DESCRIPTORS) #elif defined(USE_RAM_DESCRIPTORS)
#define MemoryAddressSpace MEMSPACE_SRAM #define MemoryAddressSpace MEMSPACE_RAM
#else #else
uint8_t MemoryAddressSpace; uint8_t MemoryAddressSpace;
#endif #endif

Loading…
Cancel
Save