better error message

This commit is contained in:
Matthew Kennedy 2023-06-01 11:43:41 -07:00
parent 9f862b5950
commit f9541aa1d1
1 changed files with 3 additions and 3 deletions

View File

@ -137,10 +137,10 @@ expected<uint32_t> TriggerStimulatorHelper::findTriggerSyncPoint(
}
shape.setShapeDefinitionError(true);
if (engineConfiguration->overrideTriggerGaps) {
firmwareError(ObdCode::CUSTOM_ERR_CUSTOM_GAPS_BAD, "Your custom trigger gaps are not good.");
if (engineConfiguration->overrideTriggerGaps) {
firmwareError(ObdCode::CUSTOM_ERR_CUSTOM_GAPS_BAD, "The custom trigger gaps are invalid for the current trigger type.");
} else {
firmwareError(ObdCode::CUSTOM_ERR_TRIGGER_SYNC, "findTriggerZeroEventIndex() failed");
firmwareError(ObdCode::CUSTOM_ERR_TRIGGER_SYNC, "findTriggerZeroEventIndex() failed");
}
return unexpected;
}