From 782614dbb55addcae8c9d4d9e1ce3dec81287282 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Thu, 10 Feb 2011 17:55:49 +0000 Subject: Add static keyword to all project globals whose scope should be restricted to the same module as they are declared in. Tighten up the HID class bootloader code slightly, document that it currently exceeds 2KB of bootloader space for all models other than the Series 2 USB AVRs. --- LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'LUFA/Drivers/USB/HighLevel') diff --git a/LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c b/LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c index ffd949ed3..f9cec4168 100644 --- a/LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c +++ b/LUFA/Drivers/USB/HighLevel/DeviceStandardReq.c @@ -48,7 +48,7 @@ bool USB_RemoteWakeupEnabled; void USB_Device_ProcessControlRequest(void) { - uint8_t* RequestHeader = (uint8_t*)&USB_ControlRequest; + uint8_t* RequestHeader = (uint8_t*)&USB_ControlRequest; for (uint8_t RequestHeaderByte = 0; RequestHeaderByte < sizeof(USB_Request_Header_t); RequestHeaderByte++) *(RequestHeader++) = Endpoint_Read_Byte(); @@ -123,10 +123,10 @@ static void USB_Device_SetAddress(void) while (!(Endpoint_IsINReady())); - USB_DeviceState = (DeviceAddress) ? DEVICE_STATE_Addressed : DEVICE_STATE_Default; - USB_Device_SetDeviceAddress(DeviceAddress); } + + USB_DeviceState = (DeviceAddress) ? DEVICE_STATE_Addressed : DEVICE_STATE_Default; } static void USB_Device_SetConfiguration(void) -- cgit v1.2.3