mirror of https://github.com/rusefi/rusefi.git
bosch quick start decoding issue or else #6281
camSimulatorPin part two only:f407-discovery
This commit is contained in:
parent
1bfb2e2d2d
commit
8b9c1c6d39
|
@ -239,10 +239,16 @@ void startTriggerEmulatorPins() {
|
||||||
for (size_t i = 0; i < efi::size(emulatorOutputs[channel]); i++) {
|
for (size_t i = 0; i < efi::size(emulatorOutputs[channel]); i++) {
|
||||||
triggerEmulatorSignals[channel].outputPins[i] = &emulatorOutputs[channel][i];
|
triggerEmulatorSignals[channel].outputPins[i] = &emulatorOutputs[channel][i];
|
||||||
|
|
||||||
// todo: add pin configs for cam simulator channels
|
brain_pin_e pin;
|
||||||
if (channel != 0)
|
|
||||||
continue;
|
if (channel == 0) {
|
||||||
brain_pin_e pin = engineConfiguration->triggerSimulatorPins[i];
|
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
|
// Only bother trying to set output pins if they're configured
|
||||||
if (isBrainPinValid(pin)) {
|
if (isBrainPinValid(pin)) {
|
||||||
|
|
Loading…
Reference in New Issue