Skip to content

Commit

Permalink
SD log file names are fome_x.mlg
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Sep 13, 2024
1 parent 15352f0 commit d2bf9ab
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions firmware/hw_layer/mmc_card.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ static spi_device_e mmcSpiDevice = SPI_NONE;

#define LOG_INDEX_FILENAME "index.txt"

#define RUSEFI_LOG_PREFIX "re_"
#define PREFIX_LEN 3
#define FOME_LOG_PREFIX "fome_"
#define PREFIX_LEN 5
#define SHORT_TIME_LEN 13

#define LS_RESPONSE "ls_result"
Expand Down Expand Up @@ -168,15 +168,10 @@ static void incLogFileName() {
}

static void prepareLogFileName() {
strcpy(logName, RUSEFI_LOG_PREFIX);
strcpy(logName, FOME_LOG_PREFIX);
char *ptr;

#if HAL_USE_USB_MSD
bool result = dateToStringShort(&logName[PREFIX_LEN]);
#else
// TS SD protocol supports only short 8 symbol file names :(
bool result = false;
#endif

if (result) {
ptr = &logName[PREFIX_LEN + SHORT_TIME_LEN];
Expand Down

0 comments on commit d2bf9ab

Please sign in to comment.