aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/Core
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-06-06 19:58:51 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-06-06 19:58:51 +0000
commit082537f5bd6b0620ff9b712b9370e5d0c01a61e3 (patch)
tree55196405428ccd8fddb7afb723e573c55aaa68a2 /LUFA/Drivers/USB/Core
parent940145ca6d112782020c8570070c14ba57fdec20 (diff)
downloadlufa-082537f5bd6b0620ff9b712b9370e5d0c01a61e3.tar.gz
lufa-082537f5bd6b0620ff9b712b9370e5d0c01a61e3.tar.bz2
lufa-082537f5bd6b0620ff9b712b9370e5d0c01a61e3.zip
Oops - really fix logic errors in USBMode.h.
Diffstat (limited to 'LUFA/Drivers/USB/Core')
-rw-r--r--LUFA/Drivers/USB/Core/USBMode.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/LUFA/Drivers/USB/Core/USBMode.h b/LUFA/Drivers/USB/Core/USBMode.h
index 1b1d9dc9a..f62c8c152 100644
--- a/LUFA/Drivers/USB/Core/USBMode.h
+++ b/LUFA/Drivers/USB/Core/USBMode.h
@@ -239,14 +239,8 @@
#define USB_CAN_BE_DEVICE
#endif
- #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))
- #if !defined(USB_HOST_ONLY)
- #define USB_HOST_ONLY
- #endif
+ #if (defined(USB_CAN_BE_DEVICE) && defined(USB_CAN_BE_HOST))
+ #define USB_CAN_BE_BOTH
#endif
#if defined(USB_HOST_ONLY)