parent
05b1656071
commit
f073247010
|
@ -335,12 +335,17 @@ void LogTriggerCoilState(efitick_t timestamp, bool state) {
|
|||
//SetNextCompositeEntry(timestamp, trigger1, trigger2, trigger);
|
||||
}
|
||||
|
||||
void LogTriggerInjectorState(efitick_t timestamp, bool state) {
|
||||
void LogTriggerInjectorState(efitick_t timestamp, size_t index, bool state) {
|
||||
if (!ToothLoggerEnabled) {
|
||||
return;
|
||||
}
|
||||
currentInjectorState = state;
|
||||
UNUSED(timestamp);
|
||||
|
||||
#if EFI_UNIT_TEST
|
||||
jsonTraceEntry("inj", 10 + index, state, timestamp);
|
||||
#endif // EFI_UNIT_TEST
|
||||
|
||||
//SetNextCompositeEntry(timestamp, trigger1, trigger2, trigger);
|
||||
}
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ void LogTriggerTopDeadCenter(efitick_t timestamp);
|
|||
|
||||
void LogTriggerCoilState(efitick_t timestamp, bool state);
|
||||
|
||||
void LogTriggerInjectorState(efitick_t timestamp, bool state);
|
||||
void LogTriggerInjectorState(efitick_t timestamp, size_t index, bool state);
|
||||
|
||||
typedef struct __attribute__ ((packed)) {
|
||||
// the whole order of all packet bytes is reversed, not just the 'endian-swap' integers
|
||||
|
|
|
@ -50,7 +50,7 @@ void InjectorOutputPin::open(efitick_t nowNt) {
|
|||
#endif /* FUEL_MATH_EXTREME_LOGGING */
|
||||
} else {
|
||||
#if EFI_TOOTH_LOGGER
|
||||
LogTriggerInjectorState(nowNt, true);
|
||||
LogTriggerInjectorState(nowNt, injectorIndex, true);
|
||||
#endif // EFI_TOOTH_LOGGER
|
||||
setHigh();
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ void InjectorOutputPin::close(efitick_t nowNt) {
|
|||
#endif /* FUEL_MATH_EXTREME_LOGGING */
|
||||
} else {
|
||||
#if EFI_TOOTH_LOGGER
|
||||
LogTriggerInjectorState(nowNt, false);
|
||||
LogTriggerInjectorState(nowNt, injectorIndex, false);
|
||||
#endif // EFI_TOOTH_LOGGER
|
||||
setLow();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue