From 923f5d1a6c0629bb5445e941d7db63afa07c4140 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 23 Oct 2021 23:42:22 -0400 Subject: [PATCH] generate java enum from C enum? generate both C and java from yaml? #2102 --- firmware/controllers/algo/engine_types.h | 2 -- firmware/integration/rusefi_config.txt | 3 --- .../src/main/java/com/rusefi/f4discovery/PwmHardwareTest.java | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/firmware/controllers/algo/engine_types.h b/firmware/controllers/algo/engine_types.h index 07baedc2a2..5113098a02 100644 --- a/firmware/controllers/algo/engine_types.h +++ b/firmware/controllers/algo/engine_types.h @@ -308,8 +308,6 @@ typedef enum { DBG_UNUSED_42 = 42, DBG_INJECTOR_COMPENSATION = 43, DBG_DYNO_VIEW = 44, - // todo: because of getEnumOptionsForTunerStudio 'getEnumOptionsForTunerStudio' would not work here - // todo: https://github.com/rusefi/rusefi/issues/2102 DBG_LOGIC_ANALYZER = 45, DBG_RUSEFI_WIDEBAND = 46, DBG_TCU = 47, diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index b65079cc9b..4a82f0864e 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -469,9 +469,6 @@ end_struct #define TT_TT_FORD_TFI_PIP 65 #define TT_TT_SUZUKI_G13B 66 -! todo https://github.com/rusefi/rusefi/issues/2102 -#define DBG_DBG_LOGIC_ANALYZER 45 - ! todo https://github.com/rusefi/rusefi/issues/2102 #define ET_DEFAULT_FRANKENSO 0 #define ET_MIATA_TCU_PROTEUS 1 diff --git a/java_console/autotest/src/main/java/com/rusefi/f4discovery/PwmHardwareTest.java b/java_console/autotest/src/main/java/com/rusefi/f4discovery/PwmHardwareTest.java index 23df6aa9c9..01837ef02b 100644 --- a/java_console/autotest/src/main/java/com/rusefi/f4discovery/PwmHardwareTest.java +++ b/java_console/autotest/src/main/java/com/rusefi/f4discovery/PwmHardwareTest.java @@ -72,7 +72,7 @@ public class PwmHardwareTest extends RusefiTestBase { ecu.sendCommand(CMD_TRIGGER_PIN + " 1 PA8"); /* DBG_LOGIC_ANALYZER */ - ecu.sendCommand("set debug_mode " + DBG_DBG_LOGIC_ANALYZER); + ecu.sendCommand("set debug_mode " + com.rusefi.enums.debug_mode_e.DBG_LOGIC_ANALYZER); /* 160 Hz */ ecu.sendCommand("set idle_solenoid_freq " + FREQUENCY);