Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of PSU-POWERLOGGER by
Diff: CODE/chan_fat_fs/diskio.cpp
- Revision:
- 3:d55665050fcb
- Parent:
- 0:d0c18e423b13
--- a/CODE/chan_fat_fs/diskio.cpp	Fri Sep 21 19:01:33 2012 +0000
+++ b/CODE/chan_fat_fs/diskio.cpp	Fri Sep 28 15:41:36 2012 +0000
@@ -158,7 +158,8 @@
     rc = Host_EnumDev();       /* Enumerate the device connected                                            */
     if (rc != OK)
     {
-        fprintf(stderr, "Could not enumerate device: %d\n", rc);
+        //fprintf(stderr, "Could not enumerate device: %d\n", rc);
+        PrintfEnqueue(&PCBackDoorTx,"Could not enumerate device: %d\n", rc);
         return rc;
     }
         
@@ -167,11 +168,13 @@
     rc = MS_Init( &_blkSize, &_numBlks, inquiryResult );
     if (rc != OK)
     {
-        fprintf(stderr, "Could not initialize mass storage interface: %d\n", rc);
+        //fprintf(stderr, "Could not initialize mass storage interface: %d\n", rc);
+        PrintfEnqueue(&PCBackDoorTx,"Could not initialize mass storage interface: %d\n", rc);
         return rc;
     }
-    printf("Successfully initialized mass storage interface; %d blocks of size %d\n", _numBlks, _blkSize);
-    print_inquiry(inquiryResult);
+    //printf("Successfully initialized mass storage interface; %d blocks of size %d\n", _numBlks, _blkSize);
+    PrintfEnqueue(&PCBackDoorTx,"Successfully initialized mass storage interface; %d blocks of size %d\n", _numBlks, _blkSize);
+    //print_inquiry(inquiryResult);
     // FATFileSystem supports only 512-byte blocks
     return _blkSize == 512 ? OK : 1;
 }
    