minor bugfix in theoretical case of two consequitive changes

This commit is contained in:
rusefi 2018-02-03 12:56:37 -05:00
parent 86f7a89412
commit a15eab1b71
1 changed files with 6 additions and 8 deletions

View File

@ -39,6 +39,12 @@ WaveChart waveChart;
EXTERN_ENGINE;
/**
* true if a recent configuration change has changed any of the trigger settings which
* we have not adjusted for yet
*/
static bool isTriggerConfigChanged = false;
#if EFI_HISTOGRAMS || defined(__DOXYGEN__)
static histogram_s triggerCallbackHistogram;
#endif /* EFI_HISTOGRAMS */
@ -72,8 +78,6 @@ void addTriggerEventListener(ShaftPositionListener listener, const char *name, E
uint32_t triggerHanlderEntryTime;
#if (EFI_PROD_CODE || EFI_SIMULATOR) || defined(__DOXYGEN__)
EXTERN_ENGINE
;
int triggerReentraint = 0;
int maxTriggerReentraint = 0;
@ -82,12 +86,6 @@ uint32_t triggerMaxDuration = 0;
static bool isInsideTriggerHandler = false;
/**
* true if a recent configuration change has changed any of the trigger settings which
* we have not adjusted for yet
*/
static bool isTriggerConfigChanged = false;
static efitick_t previousVvtCamTime = 0;
static efitick_t previousVvtCamDuration = 0;