bosch quick start decoding issue or else #6281

camSimulatorPin part two

only:f407-discovery
This commit is contained in:
rusefillc 2024-03-23 21:56:12 -04:00 committed by rusefi
parent 1bfb2e2d2d
commit 8b9c1c6d39
1 changed files with 10 additions and 4 deletions

View File

@ -239,10 +239,16 @@ void startTriggerEmulatorPins() {
for (size_t i = 0; i < efi::size(emulatorOutputs[channel]); i++) {
triggerEmulatorSignals[channel].outputPins[i] = &emulatorOutputs[channel][i];
// todo: add pin configs for cam simulator channels
if (channel != 0)
continue;
brain_pin_e pin = engineConfiguration->triggerSimulatorPins[i];
brain_pin_e pin;
if (channel == 0) {
pin = engineConfiguration->triggerSimulatorPins[i];
} else if (channel == 1 && i == 0) {
pin = engineConfiguration->camSimulatorPin;
} else {
// todo: add pin configs for cam simulator channels
continue;
}
// Only bother trying to set output pins if they're configured
if (isBrainPinValid(pin)) {