Skip to content

Commit

Permalink
more dead efifeatures
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Aug 7, 2024
1 parent baa7618 commit 1913853
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 24 deletions.
3 changes: 0 additions & 3 deletions firmware/console/eficonsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
14 changes: 2 additions & 12 deletions firmware/development/engine_sniffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;
}
Expand Down
5 changes: 1 addition & 4 deletions firmware/util/math/interpolation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
5 changes: 0 additions & 5 deletions simulator/simulator/efifeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1913853

Please sign in to comment.