nicer enum name

This commit is contained in:
rusefi 2019-11-03 21:19:13 -05:00
parent a2bee7f46b
commit 22453f8392
2 changed files with 2 additions and 2 deletions

View File

@ -1908,7 +1908,7 @@ typedef enum {
CUSTOM_ERR_6558 = 6558,
CUSTOM_ERR_6559 = 6559,
CUSTOM_ERR_6560 = 6560,
CUSTOM_ERR_TRIGGER_ANGLE_RANGE = 6560,
CUSTOM_ERR_6561 = 6561,
CUSTOM_ERR_6562 = 6562,
CUSTOM_ERR_6563 = 6563,

View File

@ -200,7 +200,7 @@ float TriggerStateWithRunningStatistics::calculateInstantRpm(int *prevIndexOut,
return NOISY_RPM;
}
angle_t previousAngle = currentAngle - 90;
fixAngle(previousAngle, "prevAngle", CUSTOM_ERR_6560);
fixAngle(previousAngle, "prevAngle", CUSTOM_ERR_TRIGGER_ANGLE_RANGE);
// todo: prevIndex should be pre-calculated
int prevIndex = TRIGGER_SHAPE(triggerIndexByAngle[(int)previousAngle]);