auto-sync

This commit is contained in:
rusEfi 2016-11-13 00:01:42 -05:00
parent 915e0a02b3
commit ba81738b76
2 changed files with 11 additions and 2 deletions

View File

@ -18,9 +18,18 @@ void setMazdaMiata2003EngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
engineConfiguration->hasMapSensor = true;
engineConfiguration->trigger.type = TT_MIATA_VVT;
engineConfiguration->trigger.type = TT_ONE;
engineConfiguration->specs.displacement = 1.8;
boardConfiguration->triggerInputPins[0] = GPIOA_5;
boardConfiguration->triggerInputPins[1] = GPIO_UNASSIGNED;
engineConfiguration->camInput = GPIOC_6;
boardConfiguration->miataNb2 = true;
boardConfiguration->vvtCamSensorUseRise = true;
engineConfiguration->specs.cylindersCount = 4;
engineConfiguration->specs.firingOrder = FO_1_3_4_2;

View File

@ -85,7 +85,7 @@ void hwHandleVvtCamSignal(trigger_value_e front) {
addEngineSniffferEvent(VVT_NAME, front == TV_RISE ? WC_UP : WC_DOWN);
}
if (boardConfiguration->vvtCamSensorUseRise && front == TV_FALL) {
if (boardConfiguration->vvtCamSensorUseRise ^ (front != TV_FALL)) {
return;
}