aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-05-06 12:43:00 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-05-06 12:43:00 +0000
commita908773a13ee491f2f8907cdf57c26fb39e10658 (patch)
tree4672f5f9f37c4b271a63aab6313deb5a5a72b7ff /LUFA
parent63a8f66d92b5d7018a4d962f4f7b23774a621771 (diff)
downloadlufa-a908773a13ee491f2f8907cdf57c26fb39e10658.tar.gz
lufa-a908773a13ee491f2f8907cdf57c26fb39e10658.tar.bz2
lufa-a908773a13ee491f2f8907cdf57c26fb39e10658.zip
Change device demos to cache the board button values in the same manner as the board joystick to maintain consistency.
Diffstat (limited to 'LUFA')
-rw-r--r--LUFA/Drivers/USB/LowLevel/DevChapter9.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/DevChapter9.c b/LUFA/Drivers/USB/LowLevel/DevChapter9.c
index bf1cb6c8f..9c319fc07 100644
--- a/LUFA/Drivers/USB/LowLevel/DevChapter9.c
+++ b/LUFA/Drivers/USB/LowLevel/DevChapter9.c
@@ -131,7 +131,7 @@ static void USB_Device_SetAddress(void)
static void USB_Device_SetConfiguration(void)
{
- bool AlreadyConfigured = (USB_ConfigurationNumber != 0);
+ bool AlreadyConfigured = (USB_ConfigurationNumber != 0);
#if defined(USE_SINGLE_DEVICE_CONFIGURATION)
if ((uint8_t)USB_ControlRequest.wValue > 1)
@@ -188,7 +188,7 @@ static void USB_Device_GetDescriptor(void)
#if defined(USE_RAM_DESCRIPTORS)
Endpoint_Write_Control_Stream_LE(DescriptorPointer, DescriptorSize);
#else
- bool SendZLP;
+ bool SendZLP;
if (USB_ControlRequest.wLength > DescriptorSize)
USB_ControlRequest.wLength = DescriptorSize;