Fix redefinition warning when USB_DEVICE_ONLY is set on an AVR which does not support...
[pub/USBasp.git] / LUFA / Drivers / USB / HighLevel / USBMode.h
index 18a2666..ba221c5 100644 (file)
@@ -50,7 +50,9 @@
                                        #error USB_HOST_ONLY is not available for the currently selected USB AVR model.\r
                                #endif\r
                                \r
-                               #define USB_DEVICE_ONLY\r
+                               #if !defined(USB_DEVICE_ONLY)\r
+                                       #define USB_DEVICE_ONLY\r
+                               #endif\r
                        #endif\r
 \r
                        #if (!defined(USB_DEVICE_ONLY) && !defined(USB_HOST_ONLY))\r