better enum name

This commit is contained in:
rusEfi 2018-10-21 15:20:35 -04:00
parent 3c2fc8d86a
commit 935dd73c47
3 changed files with 10 additions and 7 deletions

View File

@ -738,8 +738,8 @@ case DBG_MAP:
return "DBG_MAP"; return "DBG_MAP";
case DBG_METRICS: case DBG_METRICS:
return "DBG_METRICS"; return "DBG_METRICS";
case DBG_29: case DBG_ELECTRONIC_THROTTLE_EXTRA:
return "DBG_29"; return "DBG_ELECTRONIC_THROTTLE_EXTRA";
case DBG_ADC: case DBG_ADC:
return "DBG_ADC"; return "DBG_ADC";
case DBG_ALTERNATOR_PID: case DBG_ALTERNATOR_PID:
@ -752,8 +752,8 @@ case DBG_BENCH_TEST:
return "DBG_BENCH_TEST"; return "DBG_BENCH_TEST";
case DBG_CRANKING_DETAILS: case DBG_CRANKING_DETAILS:
return "DBG_CRANKING_DETAILS"; return "DBG_CRANKING_DETAILS";
case DBG_ELECTRONIC_THROTTLE: case DBG_ELECTRONIC_THROTTLE_PID:
return "DBG_ELECTRONIC_THROTTLE"; return "DBG_ELECTRONIC_THROTTLE_PID";
case DBG_EL_ACCEL: case DBG_EL_ACCEL:
return "DBG_EL_ACCEL"; return "DBG_EL_ACCEL";
case DBG_EXECUTOR: case DBG_EXECUTOR:

View File

@ -764,7 +764,10 @@ typedef enum {
DBG_SR5_PROTOCOL = 14, DBG_SR5_PROTOCOL = 14,
DBG_KNOCK = 15, DBG_KNOCK = 15,
DBG_TRIGGER_SYNC = 16, DBG_TRIGGER_SYNC = 16,
DBG_ELECTRONIC_THROTTLE = 17, /**
* See also DBG_ELECTRONIC_THROTTLE_EXTRA
*/
DBG_ELECTRONIC_THROTTLE_PID = 17,
DBG_EXECUTOR = 18, DBG_EXECUTOR = 18,
DBG_BENCH_TEST = 19, DBG_BENCH_TEST = 19,
DBG_AUX_VALVES = 20, DBG_AUX_VALVES = 20,
@ -777,7 +780,7 @@ typedef enum {
DBG_CAN = 26, DBG_CAN = 26,
DBG_MAP = 27, DBG_MAP = 27,
DBG_METRICS = 28, DBG_METRICS = 28,
DBG_29 = 29, DBG_ELECTRONIC_THROTTLE_EXTRA = 29,
DBG_30 = 30, DBG_30 = 30,
DBG_31 = 31, DBG_31 = 31,
DBG_32 = 32, DBG_32 = 32,

View File

@ -127,7 +127,7 @@ static msg_t etbThread(void *arg) {
outputDirectionClose.setValue(needEtbBraking); outputDirectionClose.setValue(needEtbBraking);
} }
if (engineConfiguration->debugMode == DBG_ELECTRONIC_THROTTLE) { if (engineConfiguration->debugMode == DBG_ELECTRONIC_THROTTLE_PID) {
pid.postState(&tsOutputChannels); pid.postState(&tsOutputChannels);
} }
if (engineConfiguration->isVerboseETB) { if (engineConfiguration->isVerboseETB) {