This commit is contained in:
Andrey 2024-04-04 11:32:42 -04:00
parent 68261a7634
commit a8ea8a07ce
2 changed files with 9 additions and 5 deletions

View File

@ -38,8 +38,6 @@ void setHarley() {
engineConfiguration->maximumIgnitionTiming = 90;
engineConfiguration->minimumIgnitionTiming = -90;
// for now we need non wired camInput to keep TS field enable/disable logic happy
engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_6;
engineConfiguration->vvtMode[0] = VVT_MAP_V_TWIN;
engineConfiguration->oddFireEngine = true;
@ -53,7 +51,12 @@ void setHarley() {
engineConfiguration->acrPin2 = Gpio::PROTEUS_IGN_9;
engineConfiguration->triggerInputPins[0] = PROTEUS_VR_1;
engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_3;
// for now we need non wired camInput to keep TS field enable/disable logic happy
#if EFI_PROD_CODE
engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_6;
#else
engineConfiguration->camInputs[0] = Gpio::Unassigned;
#endif
engineConfiguration->luaOutputPins[0] = Gpio::PROTEUS_LS_12;

View File

@ -1027,8 +1027,9 @@ void onConfigurationChangeTriggerCallback() {
for (size_t i = 0; i < efi::size(engineConfiguration->triggerInputPins); i++) {
changed |= isConfigurationChanged(triggerInputPins[i]);
if (engineConfiguration->vvtMode[0] == VVT_MAP_V_TWIN && isBrainPinValid(engineConfiguration->camInputs[i])) {
criticalError("Please no physical sensors in CAM by MAP mode");
Gpio pin = engineConfiguration->camInputs[i];
if (engineConfiguration->vvtMode[0] == VVT_MAP_V_TWIN && isBrainPinValid(pin)) {
criticalError("Please no physical sensors in CAM by MAP mode index=%d %s", i, hwPortname(pin));
}
}