mirror of https://github.com/rusefi/rusefi-1.git
removing dead code
This commit is contained in:
parent
624e95e6d0
commit
d41e2fecb7
|
@ -116,7 +116,6 @@ static trigger_value_e eventType[6] = { TV_FALL, TV_RISE, TV_FALL, TV_RISE, TV_F
|
||||||
if (cycleCallback != NULL) { \
|
if (cycleCallback != NULL) { \
|
||||||
cycleCallback(this); \
|
cycleCallback(this); \
|
||||||
} \
|
} \
|
||||||
memcpy(prevTotalTime, currentCycle.totalTimeNt, sizeof(prevTotalTime)); \
|
|
||||||
startOfCycleNt = nowNt; \
|
startOfCycleNt = nowNt; \
|
||||||
resetCurrentCycleState(); \
|
resetCurrentCycleState(); \
|
||||||
intTotalEventCounter(); \
|
intTotalEventCounter(); \
|
||||||
|
|
|
@ -75,11 +75,7 @@ public:
|
||||||
efitime_t toothed_previous_time;
|
efitime_t toothed_previous_time;
|
||||||
|
|
||||||
current_cycle_state_s currentCycle;
|
current_cycle_state_s currentCycle;
|
||||||
/**
|
|
||||||
* Total time result for previous trigger cycle
|
|
||||||
* See totalTimeNt
|
|
||||||
*/
|
|
||||||
uint32_t prevTotalTime[PWM_PHASE_MAX_WAVE_PER_PWM];
|
|
||||||
int expectedTotalTime[PWM_PHASE_MAX_WAVE_PER_PWM];
|
int expectedTotalTime[PWM_PHASE_MAX_WAVE_PER_PWM];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -188,7 +188,7 @@ void TriggerState::reset() {
|
||||||
resetRunningCounters();
|
resetRunningCounters();
|
||||||
resetCurrentCycleState();
|
resetCurrentCycleState();
|
||||||
memset(expectedTotalTime, 0, sizeof(expectedTotalTime));
|
memset(expectedTotalTime, 0, sizeof(expectedTotalTime));
|
||||||
memset(prevTotalTime, 0, sizeof(prevTotalTime));
|
|
||||||
totalEventCountBase = 0;
|
totalEventCountBase = 0;
|
||||||
isFirstEvent = true;
|
isFirstEvent = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue