codes clean-up
This commit is contained in:
parent
26574555a2
commit
521b27ff35
|
@ -1927,7 +1927,7 @@ typedef enum {
|
||||||
CUSTOM_ERR_6575 = 6575,
|
CUSTOM_ERR_6575 = 6575,
|
||||||
CUSTOM_ERR_6576 = 6576,
|
CUSTOM_ERR_6576 = 6576,
|
||||||
CUSTOM_ERR_6577 = 6577,
|
CUSTOM_ERR_6577 = 6577,
|
||||||
CUSTOM_ERR_6578 = 6578,
|
CUSTOM_NULL_ENGINE_PTR = 6578,
|
||||||
CUSTOM_DUTY_TOO_LOW = 6579,
|
CUSTOM_DUTY_TOO_LOW = 6579,
|
||||||
|
|
||||||
CUSTOM_ERR_6580 = 6580,
|
CUSTOM_ERR_6580 = 6580,
|
||||||
|
@ -2081,7 +2081,7 @@ typedef enum {
|
||||||
|
|
||||||
|
|
||||||
CUSTOM_INVALID_ADC = 6720,
|
CUSTOM_INVALID_ADC = 6720,
|
||||||
CUSTOM_ERR_6721 = 6721,
|
CUSTOM_INVALID_MODE_SETTING = 6721,
|
||||||
CUSTOM_ERR_6722 = 6722,
|
CUSTOM_ERR_6722 = 6722,
|
||||||
CUSTOM_ERR_6723 = 6723,
|
CUSTOM_ERR_6723 = 6723,
|
||||||
CUSTOM_ERR_6724 = 6724,
|
CUSTOM_ERR_6724 = 6724,
|
||||||
|
|
|
@ -272,7 +272,7 @@ static void testCltByR(float resistance) {
|
||||||
|
|
||||||
void initThermistors(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
void initThermistors(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||||
logger = sharedLogger;
|
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
|
#if EFI_PROD_CODE
|
||||||
addConsoleActionF("test_clt_by_r", testCltByR);
|
addConsoleActionF("test_clt_by_r", testCltByR);
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
// mode >= 0 is always true since that's an unsigned
|
// mode >= 0 is always true since that's an unsigned
|
||||||
#define assertOMode(mode) { \
|
#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"); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue