This commit is contained in:
rusefi 2018-01-23 22:23:24 -05:00
parent 5ef8786e20
commit e47865d36d
5 changed files with 15571 additions and 5 deletions

View File

@ -157,7 +157,7 @@
/**
* Do we need file logging (like SD card) logic?
*/
#define EFI_FILE_LOGGING FALSE
#define EFI_FILE_LOGGING TRUE
#ifndef EFI_USB_SERIAL
#define EFI_USB_SERIAL TRUE

View File

@ -2,6 +2,7 @@
FATFSSRC = ${CHIBIOS}/os/various/fatfs_bindings/fatfs_diskio.c \
${CHIBIOS}/os/various/fatfs_bindings/fatfs_syscall.c \
${PROJECT_DIR}/ext/ff.c \
${PROJECT_DIR}/ext/ffunicode.c \
${PROJECT_DIR}/ext/option/unicode.c
FATFSINC = ${PROJECT_DIR}/ext

View File

@ -7,7 +7,6 @@
#define FFCONF_DEF 87030 /* Revision ID */
/*---------------------------------------------------------------------------/
/ Function Configurations
/---------------------------------------------------------------------------*/
@ -101,8 +100,8 @@
*/
#define FF_USE_LFN 3
#define FF_MAX_LFN 255
#define FF_USE_LFN 2
#define FF_MAX_LFN 32
/* The FF_USE_LFN switches the support for LFN (long file name).
/
/ 0: Disable LFN. FF_MAX_LFN has no effect.

15566
firmware/ext/ffunicode.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -267,7 +267,7 @@ static void listDirectory(const char *path) {
if ((fno.fattrib & AM_DIR) || mystrncasecmp(RUSEFI_LOG_PREFIX, fno.fname, sizeof(RUSEFI_LOG_PREFIX) - 1)) {
continue;
}
scheduleMsg(&logger, "logfile%lu:%s", fno.fsize, fno.lfname[0] == 0 ? fno.fname : fno.lfname);
scheduleMsg(&logger, "logfile%lu:%s", fno.fsize, fno.fname);
count++;
// scheduleMsg(&logger, "%c%c%c%c%c %u/%02u/%02u %02u:%02u %9lu %-12s", (fno.fattrib & AM_DIR) ? 'D' : '-',