Be doubly-certain that the incomming CDC class driver's endpoint/pipe is flushed...
[pub/USBasp.git] / Projects / Incomplete / StandaloneProgrammer / Lib / PetiteFATFs / diskio.c
index 013467c..bcf1674 100644 (file)
@@ -1,5 +1,5 @@
 /*-----------------------------------------------------------------------*/\r
-/* Low level disk I/O module skeleton for Petit FatFs (C)ChaN, 2009      */\r
+/* Low level disk I/O module skeleton for Petit FatFs (C)ChaN, 2010      */\r
 /*-----------------------------------------------------------------------*/\r
 \r
 #include "diskio.h"\r
 \r
 DSTATUS disk_initialize (void)\r
 {\r
-       DSTATUS stat;\r
-\r
-       stat = RES_OK;\r
-\r
-       return stat;\r
+       return RES_OK;\r
 }\r
 \r
 \r
@@ -46,7 +42,7 @@ DRESULT disk_readp (
                else if (MS_Host_ReadDeviceBlocks(&DiskHost_MS_Interface, 0, sector, 1, 512, BlockTemp))\r
                  ErrorCode = RES_ERROR;\r
 \r
-               printf("BLOCK READ #%lu Ret %d\r\n", sector, MS_Host_ReadDeviceBlocks(&DiskHost_MS_Interface, 0, sector, 1, 512, BlockTemp));\r
+               MS_Host_ReadDeviceBlocks(&DiskHost_MS_Interface, 0, sector, 1, 512, BlockTemp);\r
                #endif\r
        }\r
        else\r