improving debug logging
This commit is contained in:
parent
499d2618f9
commit
e6f8415280
|
@ -263,6 +263,16 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
|
||||||
|
|
||||||
isSynchronizationPoint = !shaft_is_synchronized || (currentCycle.current_index >= endOfCycleIndex);
|
isSynchronizationPoint = !shaft_is_synchronized || (currentCycle.current_index >= endOfCycleIndex);
|
||||||
|
|
||||||
|
#if EFI_UNIT_TEST || defined(__DOXYGEN__)
|
||||||
|
if (printTriggerDebug) {
|
||||||
|
printf("isSynchronizationPoint=%d index=%d size=%d\r\n",
|
||||||
|
isSynchronizationPoint,
|
||||||
|
currentCycle.current_index,
|
||||||
|
TRIGGER_SHAPE(size));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if EFI_UNIT_TEST || defined(__DOXYGEN__)
|
#if EFI_UNIT_TEST || defined(__DOXYGEN__)
|
||||||
|
@ -321,6 +331,13 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
|
||||||
;
|
;
|
||||||
|
|
||||||
nextRevolution();
|
nextRevolution();
|
||||||
|
|
||||||
|
if (printTriggerDebug) {
|
||||||
|
printf("index=%d %d\r\n",
|
||||||
|
currentCycle.current_index,
|
||||||
|
runningRevolutionCounter);
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
nextTriggerEvent()
|
nextTriggerEvent()
|
||||||
;
|
;
|
||||||
|
|
|
@ -293,7 +293,7 @@ void TriggerShape::addEvent2(angle_t angle, trigger_wheel_e const waveIndex, tri
|
||||||
|
|
||||||
#if EFI_UNIT_TEST || defined(__DOXYGEN__)
|
#if EFI_UNIT_TEST || defined(__DOXYGEN__)
|
||||||
if (printTriggerDebug) {
|
if (printTriggerDebug) {
|
||||||
printf("addEvent %f\r\n", angle);
|
printf("addEvent2 %f i=%d r/f=%d\r\n", angle, waveIndex, stateParam);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue