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

This commit is contained in:
Dean Camera
2015-12-15 21:49:05 +11:00
parent 92e9cb71e2
commit 40e1caa2da
2 changed files with 4 additions and 2 deletions
+2 -2
View 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