improving debug logging

This commit is contained in:
rusefi 2017-03-04 00:43:53 -05:00
parent 499d2618f9
commit e6f8415280
2 changed files with 18 additions and 1 deletions

View File

@ -263,6 +263,16 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
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__)
@ -321,6 +331,13 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
;
nextRevolution();
if (printTriggerDebug) {
printf("index=%d %d\r\n",
currentCycle.current_index,
runningRevolutionCounter);
}
} else {
nextTriggerEvent()
;

View File

@ -293,7 +293,7 @@ void TriggerShape::addEvent2(angle_t angle, trigger_wheel_e const waveIndex, tri
#if EFI_UNIT_TEST || defined(__DOXYGEN__)
if (printTriggerDebug) {
printf("addEvent %f\r\n", angle);
printf("addEvent2 %f i=%d r/f=%d\r\n", angle, waveIndex, stateParam);
}
#endif