]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - fatfs/doc/res/app4.c
Merge branch 'chan-fatfs' into fatfs-integration
[z180-stamp.git] / fatfs / doc / res / app4.c
similarity index 94%
rename from fatfs/doc/img/app4.c
rename to fatfs/doc/res/app4.c
index 993eb4f4ac3688c0b7b2e3fbb95ed2a68fa16831..03d124deef4c2c16870d90dbdff5440622435827 100644 (file)
@@ -48,7 +48,6 @@ int test_diskio (
     DRESULT dr;\r
 \r
 \r
-\r
     printf("test_diskio(%u, %u, 0x%08X, 0x%08X)\n", pdrv, ncyc, (UINT)buff, sz_buff);\r
 \r
     if (sz_buff < _MAX_SS + 4) {\r
@@ -306,11 +305,11 @@ int main (int argc, char* argv[])
     DWORD buff[512];  /* 2048 byte working buffer */\r
 \r
     /* Check function/compatibility of the physical drive #0 */\r
-    rc = test_diskio(0, 1, buff, sizeof buff);\r
-    if (res) {\r
-        printf("Sorry the function/compatibility test failed.\nFatFs will not work on this disk driver.\n");\r
+    rc = test_diskio(0, 3, buff, sizeof buff);\r
+    if (rc) {\r
+        printf("Sorry the function/compatibility test failed. (rc=%d)\nFatFs will not work on this disk driver.\n", rc);\r
     } else {\r
-        printf("Congratulations! The disk I/O layer works well.\n");\r
+        printf("Congratulations! The disk driver works well.\n");\r
     }\r
 \r
     return rc;\r