diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2009-05-17 07:44:00 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2009-05-17 07:44:00 +0000 |
| commit | a74816480d92f683b2d11682d516f347a1a69301 (patch) | |
| tree | 6ab7cdb9e3ee3b56ae05d83f777ec304dd185cc5 /Bootloaders/DFU | |
| parent | 829a7776bac40b95c3e82da58c5f913e10b71c82 (diff) | |
Removed DESCRIPTOR_ADDRESS() macro as it was largely supurflous and only served to obfuscate code.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@553 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Bootloaders/DFU')
| -rw-r--r-- | Bootloaders/DFU/Descriptors.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Bootloaders/DFU/Descriptors.c b/Bootloaders/DFU/Descriptors.c index 94f7404c..cff3cd52 100644 --- a/Bootloaders/DFU/Descriptors.c +++ b/Bootloaders/DFU/Descriptors.c @@ -154,22 +154,22 @@ uint16_t USB_GetDescriptor(const uint16_t wValue, const uint8_t wIndex, void** c switch (DescriptorType)
{
case DTYPE_Device:
- Address = DESCRIPTOR_ADDRESS(DeviceDescriptor);
+ Address = &DeviceDescriptor;
Size = sizeof(USB_Descriptor_Device_t);
break;
case DTYPE_Configuration:
- Address = DESCRIPTOR_ADDRESS(ConfigurationDescriptor);
+ Address = &ConfigurationDescriptor;
Size = sizeof(USB_Descriptor_Configuration_t);
break;
case DTYPE_String:
if (!(DescriptorNumber))
{
- Address = DESCRIPTOR_ADDRESS(LanguageString);
+ Address = &LanguageString;
Size = LanguageString.Header.Size;
}
else
{
- Address = DESCRIPTOR_ADDRESS(ProductString);
+ Address = &ProductString;
Size = ProductString.Header.Size;
}
|
