Small flash saving in General Menus (60bytes)

Backlight brightness now supported on ARM
SD card archive function continued
Simu backlight support for v4
This commit is contained in:
bsongis
2012-04-18 06:00:03 +00:00
parent b3113fbcbc
commit c3ddf66058
13 changed files with 82 additions and 61 deletions
+3 -3
View File
@@ -49,11 +49,11 @@ void initLogs()
if (g_oLogFile.fs) f_close(&g_oLogFile);
g_logState = 0;
strcpy_P(g_logFilename, PSTR(LOG_PATH "M00_000.CSV"));
strcpy_P(g_logFilename, PSTR(LOG_PATH "/M00_000.CSV"));
// Set log file model number
uint8_t num = g_eeGeneral.currModel + 1;
char *n = &g_logFilename[11]; // TODO constant
char *n = &g_logFilename[sizeof(LOG_PATH) + 3];
*n = (char)((num % 10) + '0');
*(--n) = (char)((num / 10) + '0');
@@ -74,7 +74,7 @@ void initLogs()
f_close(&g_oLogFile);
// bump log file counter (file extension)
n = &g_logFilename[15];
n = &g_logFilename[sizeof(LOG_PATH) + 7];
if (++*n > '9')
{
*n='0';