Haptic function by Rob should now be finished. SD card Model archive function.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user