while (!(Pipe_IsReadWriteAllowed()))\r
{\r
/* Check to see if a new frame has been issued (1ms elapsed) */\r
- if (USB_INT_HasOccurred(USB_INT_HSOFI))\r
+ if (FrameElapsed)\r
{\r
/* Clear the flag and decrement the timeout period counter */\r
- USB_INT_Clear(USB_INT_HSOFI);\r
+ FrameElapsed = false;\r
TimeoutMSRem--;\r
\r
/* Check to see if the timeout period for the command has elapsed */\r