*/\r
ISR(ENDPOINT_PIPE_vect, ISR_BLOCK)\r
{\r
+ /* Save previously selected pipe before selecting a new pipe */\r
+ uint8_t PrevSelectedPipe = Pipe_GetCurrentPipe();\r
+\r
/* Check to see if the keyboard data pipe has caused the interrupt */\r
if (Pipe_HasPipeInterrupted(KEYBOARD_DATAPIPE))\r
{\r
/* Read and process the next report from the device */\r
ReadNextReport();\r
}\r
+ \r
+ /* Restore previously selected pipe */\r
+ Pipe_SelectPipe(PrevSelectedPipe);\r
}\r
#endif\r