diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2013-05-14 16:31:29 +0200 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2013-05-14 16:31:29 +0200 |
commit | 0d800753877be372150721120452b9147a55e764 (patch) | |
tree | c21144c1bdbabf06004395ec1d92ed8661d149a8 /LUFA/Drivers/USB/Core | |
parent | 4a7405b2cf8d54cbeb6400010577c36a5fee42b0 (diff) | |
download | lufa-0d800753877be372150721120452b9147a55e764.tar.gz lufa-0d800753877be372150721120452b9147a55e764.tar.bz2 lufa-0d800753877be372150721120452b9147a55e764.zip |
Fix missing bitshift in the AVR8 Pipe_GetBoundEndpointAddress() function.
Diffstat (limited to 'LUFA/Drivers/USB/Core')
-rw-r--r-- | LUFA/Drivers/USB/Core/AVR8/Pipe_AVR8.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/Core/AVR8/Pipe_AVR8.h b/LUFA/Drivers/USB/Core/AVR8/Pipe_AVR8.h index 82664f5d8..b3962633f 100644 --- a/LUFA/Drivers/USB/Core/AVR8/Pipe_AVR8.h +++ b/LUFA/Drivers/USB/Core/AVR8/Pipe_AVR8.h @@ -323,7 +323,7 @@ uint8_t UPCFG0X_Temp = UPCFG0X; return (((UPCFG0X_Temp >> PEPNUM0) & PIPE_EPNUM_MASK) | - ((UPCFG0X_Temp & PTOKEN1) ? ENDPOINT_DIR_IN : ENDPOINT_DIR_OUT)); + ((UPCFG0X_Temp & (1 << PTOKEN1)) ? ENDPOINT_DIR_IN : ENDPOINT_DIR_OUT)); } /** Sets the period between interrupts for an INTERRUPT type pipe to a specified number of milliseconds. |