aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-06-06 19:39:38 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-06-06 19:39:38 +0000
commit940145ca6d112782020c8570070c14ba57fdec20 (patch)
treea2c48cdcf6dd7200fbebc8edb0bfb64396b673a8 /LUFA
parent0c012ede5f98cacbc4b55ba162c331ce3013fff5 (diff)
downloadlufa-940145ca6d112782020c8570070c14ba57fdec20.tar.gz
lufa-940145ca6d112782020c8570070c14ba57fdec20.tar.bz2
lufa-940145ca6d112782020c8570070c14ba57fdec20.zip
Fix errors in the SingleUSBModeTest build test. Fix logic errors in USBMode.h.
Diffstat (limited to 'LUFA')
-rw-r--r--LUFA/Drivers/USB/Core/USBMode.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/LUFA/Drivers/USB/Core/USBMode.h b/LUFA/Drivers/USB/Core/USBMode.h
index 02c4ec321..1b1d9dc9a 100644
--- a/LUFA/Drivers/USB/Core/USBMode.h
+++ b/LUFA/Drivers/USB/Core/USBMode.h
@@ -239,12 +239,14 @@
#define USB_CAN_BE_DEVICE
#endif
- #if ( defined(USB_CAN_BE_DEVICE) && defined(USB_CAN_BE_HOST))
- #define USB_CAN_BE_BOTH
- #elif ( defined(USB_CAN_BE_DEVICE) && !defined(USB_CAN_BE_HOST))
- #define USB_DEVICE_ONLY
+ #if ( defined(USB_CAN_BE_DEVICE) && !defined(USB_CAN_BE_HOST))
+ #if !defined(USB_DEVICE_ONLY)
+ #define USB_DEVICE_ONLY
+ #endif
#elif (!defined(USB_CAN_BE_DEVICE) && defined(USB_CAN_BE_HOST))
- #define USB_HOST_ONLY
+ #if !defined(USB_HOST_ONLY)
+ #define USB_HOST_ONLY
+ #endif
#endif
#if defined(USB_HOST_ONLY)