From 543650fa1efdbda657a7972b08edacf733783283 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 25 Nov 2023 11:30:12 -0500 Subject: [PATCH] only:smarter logic to allow more yaml options --- .../src/main/java/com/rusefi/pinout/PinoutLogic.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 8e0582ba5c..94a838947a 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 @@ -20,7 +20,6 @@ import static com.rusefi.output.JavaSensorsConsumer.quote; public class PinoutLogic { private static final Logging log = getLogging(PinoutLogic.class); - static final String CONNECTORS = "/connectors"; private static final String NONE = "NONE"; private static final String QUOTED_NONE = quote(NONE); private static final String INVALID = "INVALID"; @@ -169,9 +168,12 @@ public class PinoutLogic { Object pinClass = pin.get("class"); Object pinName = pin.get("pin"); Object pinTsName = pin.get("ts_name"); + Object pinFunction = pin.get("function"); + if (pinTsName == null && pinFunction != null) + pinTsName = pinFunction; Object pinType = pin.get("type"); if (pinId == null || pinClass == null || pinTsName == null) { - log.info("Skipping " + pinId + "/" + pinClass + "/" + pinTsName); + log.info("Skipping incomplete section " + pinId + "/" + pinClass + "/" + pinTsName); continue; } if (pinName != null) {