mirror of https://github.com/rusefi/rusefi.git
looks like initialState was dead #55
(cherry picked from commit daaf50c2e4
)
This commit is contained in:
parent
12a29232cc
commit
f12cab93aa
|
@ -68,7 +68,6 @@ void TriggerWaveform::initialize(operation_mode_e operationMode, SyncEdge syncEd
|
||||||
this->operationMode = operationMode;
|
this->operationMode = operationMode;
|
||||||
this->syncEdge = syncEdge;
|
this->syncEdge = syncEdge;
|
||||||
triggerShapeSynchPointIndex = 0;
|
triggerShapeSynchPointIndex = 0;
|
||||||
memset(initialState, 0, sizeof(initialState));
|
|
||||||
memset(expectedEventCount, 0, sizeof(expectedEventCount));
|
memset(expectedEventCount, 0, sizeof(expectedEventCount));
|
||||||
wave.reset();
|
wave.reset();
|
||||||
wave.waveCount = TRIGGER_INPUT_PIN_COUNT;
|
wave.waveCount = TRIGGER_INPUT_PIN_COUNT;
|
||||||
|
|
|
@ -164,10 +164,6 @@ public:
|
||||||
*/
|
*/
|
||||||
MultiChannelStateSequenceWithData<PWM_PHASE_MAX_COUNT> wave;
|
MultiChannelStateSequenceWithData<PWM_PHASE_MAX_COUNT> wave;
|
||||||
|
|
||||||
// todo: add a runtime validation which would verify that this field was set properly
|
|
||||||
// todo: maybe even automate this flag calculation?
|
|
||||||
pin_state_t initialState[PWM_PHASE_MAX_WAVE_PER_PWM];
|
|
||||||
|
|
||||||
bool isRiseEvent[PWM_PHASE_MAX_COUNT];
|
bool isRiseEvent[PWM_PHASE_MAX_COUNT];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue