auto-sync
This commit is contained in:
parent
ff14facc8b
commit
64a4cbb1a2
|
@ -113,7 +113,8 @@ static void registerSparkEvent(engine_configuration_s const *engineConfiguration
|
||||||
return; // error already reported
|
return; // error already reported
|
||||||
|
|
||||||
if (!isPinAssigned(pin)) {
|
if (!isPinAssigned(pin)) {
|
||||||
warning(OBD_PCM_Processor_Fault, "pin not assigned for coil #%d", (int) pin - (int) SPARKOUT_1_OUTPUT);
|
// todo: extact method for this index math
|
||||||
|
warning(OBD_PCM_Processor_Fault, "pin not assigned for coil #%d", (int) pin - (int) SPARKOUT_1_OUTPUT + 1);
|
||||||
}
|
}
|
||||||
event->io_pin = pin;
|
event->io_pin = pin;
|
||||||
|
|
||||||
|
@ -173,7 +174,8 @@ static void registerInjectionEvent(engine_configuration_s const *e, trigger_shap
|
||||||
io_pin_e pin, float angle) {
|
io_pin_e pin, float angle) {
|
||||||
|
|
||||||
if (!isPinAssigned(pin)) {
|
if (!isPinAssigned(pin)) {
|
||||||
warning(OBD_PCM_Processor_Fault, "pin not assigned for injector #%d", (int) pin - (int) INJECTOR_1_OUTPUT);
|
// todo: extact method for this index math
|
||||||
|
warning(OBD_PCM_Processor_Fault, "pin not assigned for injector #%d", (int) pin - (int) INJECTOR_1_OUTPUT + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
registerActuatorEventExt(e, s, list->getNextActuatorEvent(), injectonSignals.add(pin), angle);
|
registerActuatorEventExt(e, s, list->getNextActuatorEvent(), injectonSignals.add(pin), angle);
|
||||||
|
|
Loading…
Reference in New Issue