mirror of https://github.com/rusefi/rusefi-1.git
debug_mode commands
This commit is contained in:
parent
55202b952e
commit
dfa5aaf21d
|
@ -530,6 +530,10 @@ static void setTriggerType(int value) {
|
||||||
doPrintConfiguration();
|
doPrintConfiguration();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void setDebugMode(int value) {
|
||||||
|
engineConfiguration->debugMode = (debug_mode_e) value;
|
||||||
|
}
|
||||||
|
|
||||||
static void setToothedWheel(int total, int skipped DECLARE_ENGINE_PARAMETER_S) {
|
static void setToothedWheel(int total, int skipped DECLARE_ENGINE_PARAMETER_S) {
|
||||||
if (total < 1 || skipped >= total) {
|
if (total < 1 || skipped >= total) {
|
||||||
scheduleMsg(&logger, "invalid parameters %d %d", total, skipped);
|
scheduleMsg(&logger, "invalid parameters %d %d", total, skipped);
|
||||||
|
@ -984,7 +988,8 @@ plain_get_integer_s getI_plain[] = {
|
||||||
// {"fuel_pump_pin_mode", setFuelPumpPinMode},
|
// {"fuel_pump_pin_mode", setFuelPumpPinMode},
|
||||||
// {"malfunction_indicator_pin_mode", setMalfunctionIndicatorPinMode},
|
// {"malfunction_indicator_pin_mode", setMalfunctionIndicatorPinMode},
|
||||||
// {"operation_mode", setOM},
|
// {"operation_mode", setOM},
|
||||||
// {"trigger_type", setTriggerType},
|
{"debug_mode", (int*)&engineConfiguration->debugMode},
|
||||||
|
{"trigger_type", (int*)&engineConfiguration->trigger.type},
|
||||||
// {"idle_solenoid_freq", setIdleSolenoidFrequency},
|
// {"idle_solenoid_freq", setIdleSolenoidFrequency},
|
||||||
// {"tps_accel_len", setTpsAccelLen},
|
// {"tps_accel_len", setTpsAccelLen},
|
||||||
// {"engine_load_accel_len", setEngineLoadAccelLen},
|
// {"engine_load_accel_len", setEngineLoadAccelLen},
|
||||||
|
@ -1142,6 +1147,7 @@ command_i_s commandsI[] = {{"ignition_mode", setIgnitionMode},
|
||||||
{"fuel_pump_pin_mode", setFuelPumpPinMode},
|
{"fuel_pump_pin_mode", setFuelPumpPinMode},
|
||||||
{"malfunction_indicator_pin_mode", setMalfunctionIndicatorPinMode},
|
{"malfunction_indicator_pin_mode", setMalfunctionIndicatorPinMode},
|
||||||
{"operation_mode", setOM},
|
{"operation_mode", setOM},
|
||||||
|
{"debug_mode", setDebugMode},
|
||||||
{"trigger_type", setTriggerType},
|
{"trigger_type", setTriggerType},
|
||||||
{"idle_solenoid_freq", setIdleSolenoidFrequency},
|
{"idle_solenoid_freq", setIdleSolenoidFrequency},
|
||||||
{"tps_accel_len", setTpsAccelLen},
|
{"tps_accel_len", setTpsAccelLen},
|
||||||
|
|
Loading…
Reference in New Issue