auto-sync

This commit is contained in:
rusEfi 2015-09-08 22:03:12 -04:00
parent ea9a1485c7
commit 4da7e6b1fc
3 changed files with 3 additions and 5 deletions

View File

@ -22,12 +22,12 @@
#include "auto_generated_enums.h"
#include "rpm_calculator.h"
#if EFI_PROD_CODE
#if EFI_PROD_CODE || defined(__DOXYGEN__)
#include "rfiutil.h"
#include "pin_repository.h"
#endif
#if EFI_ENGINE_SNIFFER
#if EFI_ENGINE_SNIFFER || defined(__DOXYGEN__)
#include "engine_sniffer.h"
WaveChart waveChart;
#endif /* EFI_ENGINE_SNIFFER */

View File

@ -68,7 +68,7 @@ float TriggerState::getTriggerDutyCycle(int index) {
}
static trigger_wheel_e eventIndex[6] = { T_PRIMARY, T_PRIMARY, T_SECONDARY, T_SECONDARY, T_CHANNEL_3, T_CHANNEL_3 };
static trigger_value_e eventType[6] = { TV_LOW, TV_HIGH, TV_LOW, TV_HIGH, TV_LOW, TV_HIGH };
//static trigger_value_e eventType[6] = { TV_LOW, TV_HIGH, TV_LOW, TV_HIGH, TV_LOW, TV_HIGH };
#define getCurrentGapDuration(nowNt) \
(isFirstEvent ? 0 : (nowNt) - toothed_previous_time)
@ -121,7 +121,6 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
curSignal = signal;
eventCount[triggerWheel]++;
eventCountExt[signal]++;
efitime_t currentDurationLong = getCurrentGapDuration(nowNt);

View File

@ -194,7 +194,6 @@ int TriggerState::getTotalRevolutionCounter() {
void TriggerState::clear() {
memset(eventCount, 0, sizeof(eventCount));
memset(eventCountExt, 0, sizeof(eventCountExt));
memset(timeOfPreviousEventNt, 0, sizeof(timeOfPreviousEventNt));
memset(totalTimeNt, 0, sizeof(totalTimeNt));
current_index = 0;