Mercurial > ~darius > hgwebdir.cgi > stm32temp
comparison sd.c @ 89:fc21fb5b171b default tip
Make error message more useful
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Fri, 13 Mar 2015 11:39:59 +1030 |
parents | 488085e0c7e1 |
children |
comparison
equal
deleted
inserted
replaced
88:5fc6a25f40ef | 89:fc21fb5b171b |
---|---|
60 sd_domount(void) { | 60 sd_domount(void) { |
61 SD_Error err; | 61 SD_Error err; |
62 FRESULT fserr; | 62 FRESULT fserr; |
63 | 63 |
64 if ((err = SD_Init()) != SD_OK) { | 64 if ((err = SD_Init()) != SD_OK) { |
65 printf("Failed init: %s\n", sderr2str(err)); | 65 printf("SD failed init: %s\n", sderr2str(err)); |
66 return; | 66 return; |
67 } | 67 } |
68 | 68 |
69 if ((fserr = f_mount(0, &fsh)) != FR_OK) { | 69 if ((fserr = f_mount(0, &fsh)) != FR_OK) { |
70 printf("Unable to mount FS\n"); | 70 printf("Unable to mount FS\n"); |