refactoring

This commit is contained in:
rusefillc 2021-04-04 23:03:51 -04:00
parent f877d32be4
commit f3c46f2720
1 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,8 @@ void hwHandleVvtCamSignal(trigger_value_e front, efitick_t nowNt, int index DECL
}
if (!vvtWithRealDecoder(engineConfiguration->vvtMode[camIndex]) && (CONFIG(vvtCamSensorUseRise) ^ (front != TV_FALL))) {
bool isImportantFront = (CONFIG(vvtCamSensorUseRise) ^ (front == TV_FALL));
if (!vvtWithRealDecoder(engineConfiguration->vvtMode[camIndex]) && !isImportantFront) {
// todo: there should be a way to always use real trigger code for this logic?
return;
}