From a908773a13ee491f2f8907cdf57c26fb39e10658 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 6 May 2009 12:43:00 +0000 Subject: Change device demos to cache the board button values in the same manner as the board joystick to maintain consistency. --- LUFA/Drivers/USB/LowLevel/DevChapter9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LUFA') 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; -- cgit v1.2.3