Speed up bit-banged USART code in the AVRISP project.
[pub/USBasp.git] / Projects / Incomplete / StandaloneProgrammer / Lib / PetiteFATFs / diskio.c
index 013467c..d46d9b9 100644 (file)
 \r
 DSTATUS disk_initialize (void)\r
 {\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
 }\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
                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
                #endif\r
        }\r
        else\r