From 42797c85195716e9974876a68cb8b71c9ce62fa2 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 4 Mar 2018 19:19:34 -0500 Subject: [PATCH] reviving EFI_DEFAILED_LOGGING --- firmware/controllers/system/efiGpio.cpp | 6 +++--- firmware/controllers/trigger/main_trigger_callback.cpp | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/firmware/controllers/system/efiGpio.cpp b/firmware/controllers/system/efiGpio.cpp index 717f4b0007..a16335d580 100644 --- a/firmware/controllers/system/efiGpio.cpp +++ b/firmware/controllers/system/efiGpio.cpp @@ -229,9 +229,9 @@ void NamedOutputPin::setLow() { setValue(false); #if EFI_DEFAILED_LOGGING || defined(__DOXYGEN__) - systime_t after = hTimeNow(); - debugInt(&signal->logging, "a_time", after - signal->hi_time); - scheduleLogging(&signal->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 || defined(__DOXYGEN__) diff --git a/firmware/controllers/trigger/main_trigger_callback.cpp b/firmware/controllers/trigger/main_trigger_callback.cpp index b4af71af6d..aa01bf2975 100644 --- a/firmware/controllers/trigger/main_trigger_callback.cpp +++ b/firmware/controllers/trigger/main_trigger_callback.cpp @@ -249,18 +249,18 @@ static ALWAYS_INLINE void handleFuelInjectionEvent(int injEventIndex, InjectionE #if FUEL_MATH_EXTREME_LOGGING || defined(__DOXYGEN__) - scheduleMsg(logger, "handleFuel totalPerCycle=%.2f", totalPerCycle); - scheduleMsg(logger, "handleFuel engineCycleDuration=%.2f", engineCycleDuration); +// scheduleMsg(logger, "handleFuel totalPerCycle=%.2f", totalPerCycle); +// scheduleMsg(logger, "handleFuel engineCycleDuration=%.2f", engineCycleDuration); #endif /* FUEL_MATH_EXTREME_LOGGING */ floatus_t injectionStartDelayUs = ENGINE(rpmCalculator.oneDegreeUs) * event->injectionStart.angleOffset; #if EFI_DEFAILED_LOGGING || defined(__DOXYGEN__) - scheduleMsg(logger, "handleFuel pin=%s eventIndex %d duration=%.2fms %d", event->output->name, - eventIndex, + scheduleMsg(logger, "handleFuel pin=%s eventIndex %d duration=%.2fms %d", event->outputs[0]->name, + injEventIndex, injectionDuration, getRevolutionCounter()); - scheduleMsg(logger, "handleFuel pin=%s delay=%.2f %d", event->output->name, injectionStartDelayUs, + scheduleMsg(logger, "handleFuel pin=%s delay=%.2f %d", event->outputs[0]->name, injectionStartDelayUs, getRevolutionCounter()); #endif /* EFI_DEFAILED_LOGGING */