Fix Pipe_GetBoundEndpointAddress() returning bad values in some circumstances.

This commit is contained in:
Dean Camera committed 2013-05-10 21:48:42 +02:00
1 parent 0223c3668c
commit 214d5b39fc
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -322,7 +322,8 @@
{
uint8_t UPCFG0X_Temp = UPCFG0X;
return (((UPCFG0X_Temp >> PEPNUM0) & PIPE_EPNUM_MASK) | ((UPCFG0X_Temp & PEPNUM1) ? ENDPOINT_DIR_OUT : ENDPOINT_DIR_IN));
return (((UPCFG0X_Temp >> PEPNUM0) & PIPE_EPNUM_MASK) |
((UPCFG0X_Temp & PTOKEN1) ? ENDPOINT_DIR_IN : ENDPOINT_DIR_OUT));
}
/** Sets the period between interrupts for an INTERRUPT type pipe to a specified number of milliseconds.