mirror of https://github.com/FOME-Tech/fome-fw.git
more dead efifeatures
This commit is contained in:
parent
baa76180fe
commit
1913853adb
|
@ -156,9 +156,6 @@ void initializeConsole() {
|
|||
sayHello();
|
||||
addConsoleAction("test", [](){ /* do nothing */});
|
||||
addConsoleAction("hello", sayHello);
|
||||
#if EFI_HAS_RESET
|
||||
addConsoleAction("reset", scheduleReset);
|
||||
#endif
|
||||
|
||||
addConsoleAction("critical", testCritical);
|
||||
addConsoleAction("error", myerror);
|
||||
|
|
|
@ -58,8 +58,6 @@ static char WAVE_LOGGING_BUFFER[WAVE_LOGGING_SIZE];
|
|||
|
||||
int waveChartUsedSize;
|
||||
|
||||
//#define DEBUG_WAVE 1
|
||||
|
||||
/**
|
||||
* We want to skip some engine cycles to skip what was scheduled before parameters were changed
|
||||
*/
|
||||
|
@ -82,9 +80,6 @@ void WaveChart::init() {
|
|||
}
|
||||
|
||||
void WaveChart::reset() {
|
||||
#if DEBUG_WAVE
|
||||
efiPrintf("reset while at ", counter);
|
||||
#endif /* DEBUG_WAVE */
|
||||
logging.reset();
|
||||
counter = 0;
|
||||
startTimeNt = 0;
|
||||
|
@ -141,10 +136,7 @@ void WaveChart::publish() {
|
|||
#if EFI_ENGINE_SNIFFER
|
||||
logging.appendPrintf( LOG_DELIMITER);
|
||||
waveChartUsedSize = logging.loggingSize();
|
||||
#if DEBUG_WAVE
|
||||
Logging *l = &chart->logging;
|
||||
efiPrintf("IT'S TIME", strlen(l->buffer));
|
||||
#endif // DEBUG_WAVE
|
||||
|
||||
if (getTriggerCentral()->isEngineSnifferEnabled) {
|
||||
scheduleLogging(&logging);
|
||||
}
|
||||
|
@ -181,9 +173,7 @@ void WaveChart::addEvent3(const char *name, const char * msg) {
|
|||
#endif /* EFI_PROD_CODE */
|
||||
|
||||
efiAssertVoid(ObdCode::CUSTOM_ERR_6653, isInitialized, "chart not initialized");
|
||||
#if DEBUG_WAVE
|
||||
efiPrintf("current", chart->counter);
|
||||
#endif /* DEBUG_WAVE */
|
||||
|
||||
if (isFull()) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -53,10 +53,7 @@ float interpolateMsg(const char *msg, float x1, float y1, float x2, float y2, fl
|
|||
}
|
||||
float b = y1 - a * x1;
|
||||
float result = a * x + b;
|
||||
#if DEBUG_FUEL
|
||||
printf("x1=%.2f y1=%.2f x2=%.2f y2=%.2f\r\n", x1, y1, x2, y2);
|
||||
printf("a=%.2f b=%.2f result=%.2f\r\n", a, b, result);
|
||||
#endif
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
@ -105,11 +105,6 @@
|
|||
#define HAL_TRIGGER_USE_PAL FALSE
|
||||
#endif /* HAL_TRIGGER_USE_PAL */
|
||||
|
||||
#define EFI_HAS_RESET FALSE
|
||||
#define EXTREME_TERM_LOGGING FALSE
|
||||
#define DEBUG_FUEL FALSE
|
||||
#define DEBUG_WAVE FALSE
|
||||
|
||||
#define EFI_DEFAILED_LOGGING FALSE
|
||||
#define EFI_ENGINE_SNIFFER TRUE
|
||||
|
||||
|
|
Loading…
Reference in New Issue