mirror of https://github.com/rusefi/rusefi-1.git
dead datalog code (#1439)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
parent
372d321878
commit
445f1c28f4
|
@ -129,30 +129,22 @@ static int logFileLineIndex = 0;
|
||||||
|
|
||||||
static void reportSensorF(Logging *log, const char *caption, const char *units, float value,
|
static void reportSensorF(Logging *log, const char *caption, const char *units, float value,
|
||||||
int precision) {
|
int precision) {
|
||||||
bool isLogFileFormatting = true;
|
|
||||||
|
|
||||||
if (!isLogFileFormatting) {
|
|
||||||
#if EFI_PROD_CODE || EFI_SIMULATOR
|
|
||||||
debugFloat(log, caption, value, precision);
|
|
||||||
#endif /* EFI_PROD_CODE || EFI_SIMULATOR */
|
|
||||||
} else {
|
|
||||||
|
|
||||||
#if EFI_FILE_LOGGING
|
#if EFI_FILE_LOGGING
|
||||||
if (logFileLineIndex == 0) {
|
if (logFileLineIndex == 0) {
|
||||||
append(log, caption);
|
append(log, caption);
|
||||||
append(log, TAB);
|
append(log, TAB);
|
||||||
} else if (logFileLineIndex == 1) {
|
} else if (logFileLineIndex == 1) {
|
||||||
append(log, units);
|
append(log, units);
|
||||||
append(log, TAB);
|
append(log, TAB);
|
||||||
} else {
|
} else {
|
||||||
appendFloat(log, value, precision);
|
appendFloat(log, value, precision);
|
||||||
append(log, TAB);
|
append(log, TAB);
|
||||||
}
|
|
||||||
#else
|
|
||||||
UNUSED(log);UNUSED(caption);UNUSED(units);UNUSED(value);
|
|
||||||
UNUSED(precision);
|
|
||||||
#endif /* EFI_FILE_LOGGING */
|
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
UNUSED(log);UNUSED(caption);UNUSED(units);UNUSED(value);
|
||||||
|
UNUSED(precision);
|
||||||
|
#endif /* EFI_FILE_LOGGING */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void reportSensorI(Logging *log, const char *caption, const char *units, int value) {
|
static void reportSensorI(Logging *log, const char *caption, const char *units, int value) {
|
||||||
|
|
|
@ -255,12 +255,6 @@ void NamedOutputPin::setLow() {
|
||||||
// turn off the output
|
// turn off the output
|
||||||
setValue(false);
|
setValue(false);
|
||||||
|
|
||||||
#if EFI_DEFAILED_LOGGING
|
|
||||||
// systime_t after = getTimeNowUs();
|
|
||||||
// debugInt(&signal->logging, "a_time", after - signal->hi_time);
|
|
||||||
// scheduleLogging(&signal->logging);
|
|
||||||
#endif /* EFI_DEFAILED_LOGGING */
|
|
||||||
|
|
||||||
#if EFI_ENGINE_SNIFFER
|
#if EFI_ENGINE_SNIFFER
|
||||||
addEngineSnifferEvent(getShortName(), PROTOCOL_ES_DOWN);
|
addEngineSnifferEvent(getShortName(), PROTOCOL_ES_DOWN);
|
||||||
#endif /* EFI_ENGINE_SNIFFER */
|
#endif /* EFI_ENGINE_SNIFFER */
|
||||||
|
|
|
@ -153,12 +153,6 @@ int isInitialized(Logging *logging) {
|
||||||
return logging->isInitialized;
|
return logging->isInitialized;
|
||||||
}
|
}
|
||||||
|
|
||||||
void debugInt(Logging *logging, const char *caption, int value) {
|
|
||||||
append(logging, caption);
|
|
||||||
append(logging, DELIMETER);
|
|
||||||
appendPrintf(logging, "%d%s", value, DELIMETER);
|
|
||||||
}
|
|
||||||
|
|
||||||
void appendFloat(Logging *logging, float value, int precision) {
|
void appendFloat(Logging *logging, float value, int precision) {
|
||||||
/**
|
/**
|
||||||
* todo: #1 this implementation is less than perfect
|
* todo: #1 this implementation is less than perfect
|
||||||
|
@ -190,14 +184,6 @@ void appendFloat(Logging *logging, float value, int precision) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void debugFloat(Logging *logging, const char *caption, float value, int precision) {
|
|
||||||
append(logging, caption);
|
|
||||||
append(logging, DELIMETER);
|
|
||||||
|
|
||||||
appendFloat(logging, value, precision);
|
|
||||||
append(logging, DELIMETER);
|
|
||||||
}
|
|
||||||
|
|
||||||
static char header[16];
|
static char header[16];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -51,9 +51,6 @@ int isInitialized(Logging *logging);
|
||||||
|
|
||||||
void initLoggingExt(Logging *logging, const char *name, char *buffer, int bufferSize);
|
void initLoggingExt(Logging *logging, const char *name, char *buffer, int bufferSize);
|
||||||
|
|
||||||
void debugInt(Logging *logging, const char *caption, int value);
|
|
||||||
|
|
||||||
void debugFloat(Logging *logging, const char *text, float value, int precision);
|
|
||||||
void appendFloat(Logging *logging, float value, int precision);
|
void appendFloat(Logging *logging, float value, int precision);
|
||||||
|
|
||||||
void resetLogging(Logging *logging);
|
void resetLogging(Logging *logging);
|
||||||
|
|
Loading…
Reference in New Issue