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) { \
|
||||
cycleCallback(this); \
|
||||
} \
|
||||
memcpy(prevTotalTime, currentCycle.totalTimeNt, sizeof(prevTotalTime)); \
|
||||
startOfCycleNt = nowNt; \
|
||||
resetCurrentCycleState(); \
|
||||
intTotalEventCounter(); \
|
||||
|
|
|
@ -75,11 +75,7 @@ public:
|
|||
efitime_t toothed_previous_time;
|
||||
|
||||
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];
|
||||
|
||||
/**
|
||||
|
|
|
@ -188,7 +188,7 @@ void TriggerState::reset() {
|
|||
resetRunningCounters();
|
||||
resetCurrentCycleState();
|
||||
memset(expectedTotalTime, 0, sizeof(expectedTotalTime));
|
||||
memset(prevTotalTime, 0, sizeof(prevTotalTime));
|
||||
|
||||
totalEventCountBase = 0;
|
||||
isFirstEvent = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue