Device mode class driver callbacks are now fired before the control request status...
[pub/USBasp.git] / Projects / Webserver / USBDeviceMode.c
index c93ba46..eecada9 100644 (file)
@@ -48,11 +48,11 @@ USB_ClassInfo_MS_Device_t Disk_MS_Interface =
 \r
                                .DataINEndpointNumber      = MASS_STORAGE_IN_EPNUM,\r
                                .DataINEndpointSize        = MASS_STORAGE_IO_EPSIZE,\r
-                               .DataINEndpointDoubleBank  = false,\r
+                               .DataINEndpointDoubleBank  = true,\r
 \r
                                .DataOUTEndpointNumber     = MASS_STORAGE_OUT_EPNUM,\r
                                .DataOUTEndpointSize       = MASS_STORAGE_IO_EPSIZE,\r
-                               .DataOUTEndpointDoubleBank = false,\r
+                               .DataOUTEndpointDoubleBank = true,\r
 \r
                                .TotalLUNs                 = 1,\r
                        },\r
@@ -101,7 +101,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void)
  *\r
  *  \param[in] MSInterfaceInfo  Pointer to the Mass Storage class interface configuration structure being referenced\r
  */\r
-bool CALLBACK_MS_Device_SCSICommandReceived(USB_ClassInfo_MS_Device_t* MSInterfaceInfo)\r
+bool CALLBACK_MS_Device_SCSICommandReceived(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)\r
 {\r
        bool CommandSuccess;\r
        \r