projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add (still preliminary) support for the ATXMEGA64A4 and ATXMEGA128A4. Fix minor error...
[pub/USBasp.git]
/
Projects
/
MissileLauncher
/
ConfigDescriptor.c
diff --git
a/Projects/MissileLauncher/ConfigDescriptor.c
b/Projects/MissileLauncher/ConfigDescriptor.c
index
a4a7880
..
efcd2be
100644
(file)
--- a/
Projects/MissileLauncher/ConfigDescriptor.c
+++ b/
Projects/MissileLauncher/ConfigDescriptor.c
@@
-1,13
+1,13
@@
/*
LUFA Library
/*
LUFA Library
- Copyright (C) Dean Camera, 201
1
.
+ Copyright (C) Dean Camera, 201
2
.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
- Copyright 201
1
Dean Camera (dean [at] fourwalledcubicle [dot] com)
+ Copyright 201
2
Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
@@
-102,8
+102,8
@@
uint8_t ProcessConfigurationDescriptor(void)
USB_Descriptor_Endpoint_t* EndpointData = DESCRIPTOR_PCAST(CurrConfigLocation, USB_Descriptor_Endpoint_t);
/* If the endpoint is a IN type endpoint */
USB_Descriptor_Endpoint_t* EndpointData = DESCRIPTOR_PCAST(CurrConfigLocation, USB_Descriptor_Endpoint_t);
/* If the endpoint is a IN type endpoint */
- if (
EndpointData->EndpointAddress & ENDPOINT_DESCRIPTOR
_DIR_IN)
- DataINEndpoint = EndpointData;
+ if (
(EndpointData->EndpointAddress & ENDPOINT_DIR_MASK) == ENDPOINT
_DIR_IN)
+ DataINEndpoint
= EndpointData;
else
DataOUTEndpoint = EndpointData;
}
else
DataOUTEndpoint = EndpointData;
}