Fix compile errors when both Host and Device modes are enabled.
[pub/lufa.git] / LUFA / Drivers / USB / Core / UC3 / Pipe_UC3.h
index 459423c..b82b27e 100644 (file)
                        static inline uint8_t Pipe_GetBoundEndpointAddress(void)\r
                        {\r
                                return ((&AVR32_USBB.UPCFG0)[USB_SelectedPipe].pepnum |\r
-                                       ((Pipe_GetPipeToken() == PIPE_TOKEN_IN) ? ENDPOINT_DESCRIPTOR_DIR_IN : 0));\r
+                                       ((Pipe_GetPipeToken() == PIPE_TOKEN_IN) ? PIPE_EPDIR_MASK : 0));\r
                        }\r
 \r
                        /** Sets the period between interrupts for an INTERRUPT type pipe to a specified number of milliseconds.\r