more dead efifeatures

This commit is contained in:
Matthew Kennedy 2024-08-07 12:03:10 -07:00
parent baa76180fe
commit 1913853adb
4 changed files with 3 additions and 24 deletions

View File

@ -156,9 +156,6 @@ void initializeConsole() {
sayHello(); sayHello();
addConsoleAction("test", [](){ /* do nothing */}); addConsoleAction("test", [](){ /* do nothing */});
addConsoleAction("hello", sayHello); addConsoleAction("hello", sayHello);
#if EFI_HAS_RESET
addConsoleAction("reset", scheduleReset);
#endif
addConsoleAction("critical", testCritical); addConsoleAction("critical", testCritical);
addConsoleAction("error", myerror); addConsoleAction("error", myerror);

View File

@ -58,8 +58,6 @@ static char WAVE_LOGGING_BUFFER[WAVE_LOGGING_SIZE];
int waveChartUsedSize; int waveChartUsedSize;
//#define DEBUG_WAVE 1
/** /**
* We want to skip some engine cycles to skip what was scheduled before parameters were changed * 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() { void WaveChart::reset() {
#if DEBUG_WAVE
efiPrintf("reset while at ", counter);
#endif /* DEBUG_WAVE */
logging.reset(); logging.reset();
counter = 0; counter = 0;
startTimeNt = 0; startTimeNt = 0;
@ -141,10 +136,7 @@ void WaveChart::publish() {
#if EFI_ENGINE_SNIFFER #if EFI_ENGINE_SNIFFER
logging.appendPrintf( LOG_DELIMITER); logging.appendPrintf( LOG_DELIMITER);
waveChartUsedSize = logging.loggingSize(); waveChartUsedSize = logging.loggingSize();
#if DEBUG_WAVE
Logging *l = &chart->logging;
efiPrintf("IT'S TIME", strlen(l->buffer));
#endif // DEBUG_WAVE
if (getTriggerCentral()->isEngineSnifferEnabled) { if (getTriggerCentral()->isEngineSnifferEnabled) {
scheduleLogging(&logging); scheduleLogging(&logging);
} }
@ -181,9 +173,7 @@ void WaveChart::addEvent3(const char *name, const char * msg) {
#endif /* EFI_PROD_CODE */ #endif /* EFI_PROD_CODE */
efiAssertVoid(ObdCode::CUSTOM_ERR_6653, isInitialized, "chart not initialized"); efiAssertVoid(ObdCode::CUSTOM_ERR_6653, isInitialized, "chart not initialized");
#if DEBUG_WAVE
efiPrintf("current", chart->counter);
#endif /* DEBUG_WAVE */
if (isFull()) { if (isFull()) {
return; return;
} }

View File

@ -53,10 +53,7 @@ float interpolateMsg(const char *msg, float x1, float y1, float x2, float y2, fl
} }
float b = y1 - a * x1; float b = y1 - a * x1;
float result = a * x + b; 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; return result;
} }

View File

@ -105,11 +105,6 @@
#define HAL_TRIGGER_USE_PAL FALSE #define HAL_TRIGGER_USE_PAL FALSE
#endif /* HAL_TRIGGER_USE_PAL */ #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_DEFAILED_LOGGING FALSE
#define EFI_ENGINE_SNIFFER TRUE #define EFI_ENGINE_SNIFFER TRUE