auto-sync

This commit is contained in:
rusEfi 2016-08-10 00:04:24 -04:00
parent a31f078dbf
commit f8995ae0c2
4 changed files with 6 additions and 5 deletions

View File

@ -249,7 +249,7 @@ static void handleFsio(Engine *engine, int index) {
static const char * action2String(le_action_e action) { static const char * action2String(le_action_e action) {
static char buffer[10]; static char buffer[_MAX_FILLER];
switch(action) { switch(action) {
case LE_METHOD_RPM: case LE_METHOD_RPM:
return "RPM"; return "RPM";

View File

@ -230,7 +230,7 @@ void rpmShaftPositionCallback(trigger_event_e ckpSignalType,
static scheduling_s tdcScheduler[2]; static scheduling_s tdcScheduler[2];
static char rpmBuffer[10]; static char rpmBuffer[_MAX_FILLER];
#if (EFI_PROD_CODE || EFI_SIMULATOR) || defined(__DOXYGEN__) #if (EFI_PROD_CODE || EFI_SIMULATOR) || defined(__DOXYGEN__)
/** /**

View File

@ -85,7 +85,7 @@ static void printError(const char *str, FRESULT f_error) {
static FIL FDLogFile; static FIL FDLogFile;
static FIL FDCurrFile; static FIL FDCurrFile;
static int logFileIndex = 1; static int logFileIndex = 1;
static char logName[20]; static char logName[_MAX_FILLER + 20];
static int totalLoggedBytes = 0; static int totalLoggedBytes = 0;
@ -109,7 +109,7 @@ static void incLogFileName(void) {
memset(&FDCurrFile, 0, sizeof(FIL)); // clear the memory memset(&FDCurrFile, 0, sizeof(FIL)); // clear the memory
FRESULT err = f_open(&FDCurrFile, LOG_INDEX_FILENAME, FA_READ); // This file has the index for next log file name FRESULT err = f_open(&FDCurrFile, LOG_INDEX_FILENAME, FA_READ); // This file has the index for next log file name
char data[10]; char data[_MAX_FILLER];
UINT result = 0; UINT result = 0;
if (err != FR_OK && err != FR_EXIST) { if (err != FR_OK && err != FR_EXIST) {
logFileIndex = 1; logFileIndex = 1;

View File

@ -33,7 +33,8 @@ void date_get_tm(struct tm *timp) {
} }
static void put2(int offset, char *lcd_str, int value) { static void put2(int offset, char *lcd_str, int value) {
static char buff[4]; static char buff[_MAX_FILLER];
efiAssertVoid(value >=0 && value <100, "value");
itoa10(buff, value); itoa10(buff, value);
if (value < 10) { if (value < 10) {
lcd_str[offset] = '0'; lcd_str[offset] = '0';