better error code names

This commit is contained in:
rusefi 2017-04-12 09:26:22 -04:00
parent e161280af3
commit dbb623f6d3
4 changed files with 7 additions and 7 deletions

View File

@ -1806,11 +1806,11 @@ typedef enum {
CUSTOM_ERR_WAVE_1 = 6105,
CUSTOM_ERR_WAVE_2 = 6106,
CUSTOM_ERR_TEST_ERROR = 6107,
CUSTOM_ERR_6108 = 6108,
CUSTOM_ERR_6109 = 6109,
CUSTOM_ERR_IGNITION_MODE = 6108,
CUSTOM_ERR_CAN_CONFIGURATION = 6109,
CUSTOM_ERR_INTERPOLATE = 6110,
CUSTOM_ERR_6111 = 6111,
CUSTOM_ERR_NOT_INITIALIZED_TRIGGER = 6111,
CUSTOM_ERR_MAP_TYPE = 6112,
CUSTOM_ERR_THERM = 6113,
CUSTOM_ERR_NATURAL_LOGARITHM_ERROR = 6114,

View File

@ -187,7 +187,7 @@ bool FuelSchedule::addFuelEventsForCylinder(int i DECLARE_ENGINE_PARAMETER_S) {
ev->isSimultanious = isSimultanious;
if (TRIGGER_SHAPE(getSize()) < 1) {
warning(CUSTOM_ERR_6111, "uninitialized TriggerShape");
warning(CUSTOM_ERR_NOT_INITIALIZED_TRIGGER, "uninitialized TriggerShape");
return false;
}

View File

@ -366,7 +366,7 @@ int getNumberOfSparks(ignition_mode_e mode DECLARE_ENGINE_PARAMETER_S) {
case IM_WASTED_SPARK:
return 2;
default:
firmwareError(CUSTOM_ERR_6108, "Unexpected ignition_mode_e %d", mode);
firmwareError(CUSTOM_ERR_IGNITION_MODE, "Unexpected ignition_mode_e %d", mode);
return 1;
}
}

View File

@ -91,7 +91,7 @@ void sendMessage2(int size) {
CANDriver *device = detectCanDevice(boardConfiguration->canRxPin,
boardConfiguration->canTxPin);
if (device == NULL) {
warning(CUSTOM_ERR_6109, "CAN configuration issue");
warning(CUSTOM_ERR_CAN_CONFIGURATION, "CAN configuration issue");
return;
}
txmsg.DLC = size;
@ -205,7 +205,7 @@ static void canRead(void) {
CANDriver *device = detectCanDevice(boardConfiguration->canRxPin,
boardConfiguration->canTxPin);
if (device == NULL) {
warning(CUSTOM_ERR_6109, "CAN configuration issue");
warning(CUSTOM_ERR_CAN_CONFIGURATION, "CAN configuration issue");
return;
}
// scheduleMsg(&logger, "Waiting for CAN");