From df38869f229de9ab95caea881817894503f9d83e Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 7 Mar 2023 15:43:04 -0500 Subject: [PATCH] new pin type: sent_input_pin_e #5158 only:mre_f4 --- firmware/controllers/algo/rusefi_types.h | 1 + .../src/main/java/com/rusefi/pinout/PinoutLogic.java | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/firmware/controllers/algo/rusefi_types.h b/firmware/controllers/algo/rusefi_types.h index 886da19955..907ca59f4b 100644 --- a/firmware/controllers/algo/rusefi_types.h +++ b/firmware/controllers/algo/rusefi_types.h @@ -125,6 +125,7 @@ using script_setting_t = float; using brain_input_pin_e = brain_pin_e; using switch_input_pin_e = brain_pin_e; +using sent_input_pin_e = brain_pin_e; using output_pin_e = brain_pin_e; typedef void (*VoidPtr)(void*); diff --git a/java_tools/configuration_definition/src/main/java/com/rusefi/pinout/PinoutLogic.java b/java_tools/configuration_definition/src/main/java/com/rusefi/pinout/PinoutLogic.java index 48cd2b3eaa..0f180d8830 100644 --- a/java_tools/configuration_definition/src/main/java/com/rusefi/pinout/PinoutLogic.java +++ b/java_tools/configuration_definition/src/main/java/com/rusefi/pinout/PinoutLogic.java @@ -48,10 +48,10 @@ public class PinoutLogic { return; } Map> names = new HashMap<>(); - names.put("outputs", new ArrayList<>()); - names.put("analog_inputs", new ArrayList<>()); - names.put("event_inputs", new ArrayList<>()); - names.put("switch_inputs", new ArrayList<>()); + names.put(PinType.OUTPUTS.name().toLowerCase(), new ArrayList<>()); + names.put(PinType.ANALOG_INPUTS.name().toLowerCase(), new ArrayList<>()); + names.put(PinType.EVENT_INPUTS.name().toLowerCase(), new ArrayList<>()); + names.put(PinType.SWITCH_INPUTS.name().toLowerCase(), new ArrayList<>()); for (PinState listPin : listPins) { String id = listPin.getId(); String className = listPin.getPinClass();