Changed PIPE_CONTROLPIPE_DEFAULT_SIZE from 8 to 64 to try to prevent problems with...
[pub/USBasp.git] / LUFA / Drivers / USB / HighLevel / USBTask.c
index aa04c56..738dc15 100644 (file)
@@ -157,7 +157,7 @@ static void USB_HostTask(void)
                        break;\r
                case HOST_STATE_Powered:\r
                        Pipe_ConfigurePipe(PIPE_CONTROLPIPE, EP_TYPE_CONTROL,\r
-                                                          PIPE_TOKEN_SETUP, PIPE_CONTROLPIPE,\r
+                                                          PIPE_TOKEN_SETUP, ENDPOINT_CONTROLEP,\r
                                                           PIPE_CONTROLPIPE_DEFAULT_SIZE, PIPE_BANK_SINGLE);            \r
                \r
                        if (!(Pipe_IsConfigured()))\r
@@ -203,7 +203,7 @@ static void USB_HostTask(void)
                        Pipe_ResetPipe(PIPE_CONTROLPIPE);\r
                        \r
                        Pipe_ConfigurePipe(PIPE_CONTROLPIPE, EP_TYPE_CONTROL,\r
-                                          PIPE_TOKEN_SETUP, PIPE_CONTROLPIPE,\r
+                                          PIPE_TOKEN_SETUP, ENDPOINT_CONTROLEP,\r
                                           USB_ControlPipeSize, PIPE_BANK_SINGLE);\r
 \r
                        if (!(Pipe_IsConfigured()))\r