aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-09-20 12:01:25 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-09-20 12:01:25 +0000
commit51566d1a811f43dc39f38cb597de44ba9363d974 (patch)
tree9dc1b20907accffd98fecec2f0e034331fa41b2d /Bootloaders
parentcd0adb7574525978f50eabd536f7563f2d9f9aa7 (diff)
downloadlufa-51566d1a811f43dc39f38cb597de44ba9363d974.tar.gz
lufa-51566d1a811f43dc39f38cb597de44ba9363d974.tar.bz2
lufa-51566d1a811f43dc39f38cb597de44ba9363d974.zip
Added new Pipe_IsFrozen() macro to determine if the currently selected pipe is frozen.
Added new USB_GetHIDReportSize() function to the HID report parser to retrieve the size of a given report by its ID. More additions to the unfinished HID Host Class Driver.
Diffstat (limited to 'Bootloaders')
-rw-r--r--Bootloaders/CDC/BootloaderCDC.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bootloaders/CDC/BootloaderCDC.c b/Bootloaders/CDC/BootloaderCDC.c
index d1f595c39..f66602387 100644
--- a/Bootloaders/CDC/BootloaderCDC.c
+++ b/Bootloaders/CDC/BootloaderCDC.c
@@ -524,7 +524,7 @@ void CDC_Task(void)
else if (Command == 'D')
{
/* Read the byte from the endpoint and write it to the EEPROM */
- eeprom_write_byte((uint8_t*)(uint16_t)(CurrAddress >> 1), FetchNextCommandByte());
+ eeprom_write_byte((uint8_t*)((uint16_t)(CurrAddress >> 1)), FetchNextCommandByte());
/* Increment the address after use */
CurrAddress += 2;
@@ -535,7 +535,7 @@ void CDC_Task(void)
else if (Command == 'd')
{
/* Read the EEPROM byte and write it to the endpoint */
- WriteNextResponseByte(eeprom_read_byte((uint8_t*)(uint16_t)(CurrAddress >> 1)));
+ WriteNextResponseByte(eeprom_read_byte((uint8_t*)((uint16_t)(CurrAddress >> 1))));
/* Increment the address after use */
CurrAddress += 2;