better error message
This commit is contained in:
parent
d9e8623559
commit
9f339e5eb4
|
@ -71,8 +71,9 @@ void TriggerStimulatorHelper::assertSyncPositionAndSetDutyCycle(uint32_t index,
|
||||||
for (uint32_t i = startIndex; i <= index + 2 * shape->getSize(); i++) {
|
for (uint32_t i = startIndex; i <= index + 2 * shape->getSize(); i++) {
|
||||||
nextStep(state, shape, i, triggerConfig PASS_ENGINE_PARAMETER);
|
nextStep(state, shape, i, triggerConfig PASS_ENGINE_PARAMETER);
|
||||||
}
|
}
|
||||||
if (state->getTotalRevolutionCounter() != 3) {
|
int revolutionCounter = state->getTotalRevolutionCounter();
|
||||||
warning(CUSTOM_OBD_TRIGGER_SHAPE, "sync failed/wrong gap parameters trigger=%s", getTrigger_type_e(engineConfiguration->trigger.type));
|
if (revolutionCounter != 3) {
|
||||||
|
warning(CUSTOM_OBD_TRIGGER_SHAPE, "sync failed/wrong gap parameters trigger=%s rc=%d", getTrigger_type_e(engineConfiguration->trigger.type), revolutionCounter);
|
||||||
shape->shapeDefinitionError = true;
|
shape->shapeDefinitionError = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue