Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
0416f12aa3
|
@ -129,30 +129,22 @@ static int logFileLineIndex = 0;
|
|||
|
||||
static void reportSensorF(Logging *log, const char *caption, const char *units, float value,
|
||||
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 (logFileLineIndex == 0) {
|
||||
append(log, caption);
|
||||
append(log, TAB);
|
||||
} else if (logFileLineIndex == 1) {
|
||||
append(log, units);
|
||||
append(log, TAB);
|
||||
} else {
|
||||
appendFloat(log, value, precision);
|
||||
append(log, TAB);
|
||||
}
|
||||
#else
|
||||
UNUSED(log);UNUSED(caption);UNUSED(units);UNUSED(value);
|
||||
UNUSED(precision);
|
||||
#endif /* EFI_FILE_LOGGING */
|
||||
if (logFileLineIndex == 0) {
|
||||
append(log, caption);
|
||||
append(log, TAB);
|
||||
} else if (logFileLineIndex == 1) {
|
||||
append(log, units);
|
||||
append(log, TAB);
|
||||
} else {
|
||||
appendFloat(log, value, precision);
|
||||
append(log, TAB);
|
||||
}
|
||||
#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) {
|
||||
|
|
|
@ -255,12 +255,6 @@ void NamedOutputPin::setLow() {
|
|||
// turn off the output
|
||||
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
|
||||
addEngineSnifferEvent(getShortName(), PROTOCOL_ES_DOWN);
|
||||
#endif /* EFI_ENGINE_SNIFFER */
|
||||
|
|
|
@ -153,12 +153,6 @@ int isInitialized(Logging *logging) {
|
|||
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) {
|
||||
/**
|
||||
* 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];
|
||||
|
||||
/**
|
||||
|
|
|
@ -51,9 +51,6 @@ int isInitialized(Logging *logging);
|
|||
|
||||
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 resetLogging(Logging *logging);
|
||||
|
|
Loading…
Reference in New Issue