auto-sync

This commit is contained in:
rusEfi 2014-11-25 13:03:49 -06:00
parent 5944843cd4
commit 4bc367fbf4
2 changed files with 4 additions and 5 deletions

View File

@ -71,7 +71,7 @@ void turnPinHigh(io_pin_e pin) {
#if EFI_WAVE_CHART
// explicit check here is a performance optimization to speed up no-chart mode
if (engineConfiguration->isDigitalChartEnabled) {
if (CONFIG(isDigitalChartEnabled)) {
// this is a performance optimization - array index is cheaper then invoking a method with 'switch'
const char *pinName = namedPinsArray[pin];
// dbgDurr = hal_lld_get_counter_value() - dbgStart;
@ -93,7 +93,7 @@ void turnPinLow(io_pin_e pin) {
#endif /* EFI_DEFAILED_LOGGING */
#if EFI_WAVE_CHART
if (engineConfiguration->isDigitalChartEnabled) {
if (CONFIG(isDigitalChartEnabled)) {
// this is a performance optimization - array index is cheaper then invoking a method with 'switch'
const char *pinName = namedPinsArray[pin];

View File

@ -74,7 +74,7 @@ static IgnitionEvent *iHead = NULL;
*
* This queue is using global trigger event index as 'time'
*/
static EventQueue triggerEventsQueue;
//static EventQueue triggerEventsQueue;
static cyclic_buffer ignitionErrorDetection;
@ -179,7 +179,6 @@ static ALWAYS_INLINE void handleFuel(uint32_t eventIndex, int rpm DECLARE_ENGINE
static ALWAYS_INLINE void handleSparkEvent(uint32_t eventIndex, IgnitionEvent *iEvent,
int rpm DECLARE_ENGINE_PARAMETER_S) {
engine_configuration2_s *engineConfiguration2 = engine->engineConfiguration2;
float dwellMs = getSparkDwellMsT(rpm PASS_ENGINE_PARAMETER);
if (cisnan(dwellMs) || dwellMs < 0) {
@ -375,7 +374,7 @@ void mainTriggerCallback(trigger_event_e ckpSignalType, uint32_t eventIndex DECL
engine->ignitionSchTime = GET_TIMESTAMP() - engine->beforeIgnitionSch;
}
triggerEventsQueue.executeAll(getCrankEventCounter());
// triggerEventsQueue.executeAll(getCrankEventCounter());
handleFuel(eventIndex, rpm PASS_ENGINE_PARAMETER);
handleSpark(eventIndex, rpm, &engine->engineConfiguration2->ignitionEvents[revolutionIndex] PASS_ENGINE_PARAMETER);