Fix compile errors when both Host and Device modes are enabled.
[pub/lufa.git] / LUFA / Drivers / USB / Core / AVR8 / Pipe_AVR8.h
index 4d49da4..1939d39 100644 (file)
                        static inline uint8_t Pipe_GetBoundEndpointAddress(void)
                        {
                                return (((UPCFG0X >> PEPNUM0) & PIPE_EPNUM_MASK) |
-                                       ((Pipe_GetPipeToken() == PIPE_TOKEN_IN) ? ENDPOINT_DESCRIPTOR_DIR_IN : 0));
+                                       ((Pipe_GetPipeToken() == PIPE_TOKEN_IN) ? PIPE_EPDIR_MASK : 0));
                        }
 
                        /** Sets the period between interrupts for an INTERRUPT type pipe to a specified number of milliseconds.