auto-sync

This commit is contained in:
rusEfi 2014-10-03 15:04:07 -05:00
parent ff14facc8b
commit 64a4cbb1a2
1 changed files with 4 additions and 2 deletions

View File

@ -113,7 +113,8 @@ static void registerSparkEvent(engine_configuration_s const *engineConfiguration
return; // error already reported
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;
@ -173,7 +174,8 @@ static void registerInjectionEvent(engine_configuration_s const *e, trigger_shap
io_pin_e pin, float angle) {
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);