mirror of https://github.com/rusefi/rusefi.git
better error message
This commit is contained in:
parent
9f862b5950
commit
f9541aa1d1
|
@ -137,10 +137,10 @@ expected<uint32_t> TriggerStimulatorHelper::findTriggerSyncPoint(
|
||||||
}
|
}
|
||||||
shape.setShapeDefinitionError(true);
|
shape.setShapeDefinitionError(true);
|
||||||
|
|
||||||
if (engineConfiguration->overrideTriggerGaps) {
|
if (engineConfiguration->overrideTriggerGaps) {
|
||||||
firmwareError(ObdCode::CUSTOM_ERR_CUSTOM_GAPS_BAD, "Your custom trigger gaps are not good.");
|
firmwareError(ObdCode::CUSTOM_ERR_CUSTOM_GAPS_BAD, "The custom trigger gaps are invalid for the current trigger type.");
|
||||||
} else {
|
} else {
|
||||||
firmwareError(ObdCode::CUSTOM_ERR_TRIGGER_SYNC, "findTriggerZeroEventIndex() failed");
|
firmwareError(ObdCode::CUSTOM_ERR_TRIGGER_SYNC, "findTriggerZeroEventIndex() failed");
|
||||||
}
|
}
|
||||||
return unexpected;
|
return unexpected;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue