Logs filenames were wrong!

This commit is contained in:
bsongis
2012-05-29 20:05:31 +00:00
parent 571b877a8d
commit 948f3a78c1
+2 -2
View File
@@ -54,7 +54,7 @@ void initLogs()
// Set log file model number
uint8_t num = g_eeGeneral.currModel + 1;
char *n = &g_logFilename[sizeof(LOGS_PATH) + 3];
char *n = &g_logFilename[sizeof(LOGS_PATH) + 2];
*n = (char)((num % 10) + '0');
*(--n) = (char)((num / 10) + '0');
@@ -87,7 +87,7 @@ void initLogs()
f_close(&g_oLogFile);
// bump log file counter (file extension)
n = &g_logFilename[sizeof(LOGS_PATH) + 7];
n = &g_logFilename[sizeof(LOGS_PATH) + 6];
if (++*n > '9')
{
*n='0';