codes clean-up

This commit is contained in:
rusefi 2019-12-14 00:14:36 -05:00
parent 26574555a2
commit 521b27ff35
3 changed files with 4 additions and 4 deletions

View File

@ -1927,7 +1927,7 @@ typedef enum {
CUSTOM_ERR_6575 = 6575,
CUSTOM_ERR_6576 = 6576,
CUSTOM_ERR_6577 = 6577,
CUSTOM_ERR_6578 = 6578,
CUSTOM_NULL_ENGINE_PTR = 6578,
CUSTOM_DUTY_TOO_LOW = 6579,
CUSTOM_ERR_6580 = 6580,
@ -2081,7 +2081,7 @@ typedef enum {
CUSTOM_INVALID_ADC = 6720,
CUSTOM_ERR_6721 = 6721,
CUSTOM_INVALID_MODE_SETTING = 6721,
CUSTOM_ERR_6722 = 6722,
CUSTOM_ERR_6723 = 6723,
CUSTOM_ERR_6724 = 6724,

View File

@ -272,7 +272,7 @@ static void testCltByR(float resistance) {
void initThermistors(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
logger = sharedLogger;
efiAssertVoid(CUSTOM_ERR_6578, engine!=NULL, "e NULL initThermistors");
efiAssertVoid(CUSTOM_NULL_ENGINE_PTR, engine!=NULL, "e NULL initThermistors");
#if EFI_PROD_CODE
addConsoleActionF("test_clt_by_r", testCltByR);

View File

@ -16,7 +16,7 @@
// mode >= 0 is always true since that's an unsigned
#define assertOMode(mode) { \
efiAssertVoid(CUSTOM_ERR_6578, mode <= OM_OPENDRAIN_INVERTED, "invalid pin_output_mode_e"); \
efiAssertVoid(CUSTOM_INVALID_MODE_SETTING, mode <= OM_OPENDRAIN_INVERTED, "invalid pin_output_mode_e"); \
}