Date+Time append to screenshots filenames

This commit is contained in:
bsongis
2015-02-17 19:57:20 +01:00
parent 3c4a23a3c6
commit 23c4712bbf
5 changed files with 27 additions and 10 deletions
+2 -2
View File
@@ -49,7 +49,7 @@ uint8_t logDelay;
#define get3PosState(sw) (switchState(SW_ ## sw ## 0) ? -1 : (switchState(SW_ ## sw ## 2) ? 1 : 0))
const pm_char * openLogs()
const pm_char *openLogs()
{
// Determine and set log file filename
FRESULT result;
@@ -59,8 +59,8 @@ const pm_char * openLogs()
if (!sdMounted())
return STR_NO_SDCARD;
// check and create folder here
strcpy_P(filename, STR_LOGS_PATH);
result = f_opendir(&folder, filename);
if (result != FR_OK) {
if (result == FR_NO_PATH)