Haptic function by Rob should now be finished. SD card Model archive function.

This commit is contained in:
bsongis
2012-04-16 17:35:54 +00:00
parent 8c6bf54cf9
commit fe9afeb6a2
24 changed files with 556 additions and 283 deletions
+9 -4
View File
@@ -107,10 +107,7 @@ void initLogs()
else
{
g_logState = -result;
if (result == FR_NOT_READY)
g_logError = PSTR("NO SDCARD");
else
g_logError = PSTR("SDCARD ERROR");
g_logError = SDCARD_ERROR(result);
return;
}
}
@@ -118,6 +115,14 @@ void initLogs()
// g_logFilename should now be set appropriately.
}
const pm_char *SDCARD_ERROR(FRESULT result)
{
if (result == FR_NOT_READY)
return STR_NO_SDCARD;
else
return STR_SDCARD_ERROR;
}
void writeLogs()
{
FRESULT result;