diff --git a/java_tools/ConfigDefinition.jar b/java_tools/ConfigDefinition.jar index 2ad799cc43..ec84e0616c 100644 Binary files a/java_tools/ConfigDefinition.jar and b/java_tools/ConfigDefinition.jar differ diff --git a/java_tools/configuration_definition/src/main/java/com/rusefi/ldmp/LiveDataProcessor.java b/java_tools/configuration_definition/src/main/java/com/rusefi/ldmp/LiveDataProcessor.java index 1113104f9a..e384f7a4e7 100644 --- a/java_tools/configuration_definition/src/main/java/com/rusefi/ldmp/LiveDataProcessor.java +++ b/java_tools/configuration_definition/src/main/java/com/rusefi/ldmp/LiveDataProcessor.java @@ -25,6 +25,10 @@ public class LiveDataProcessor { private final static String enumContentFileName = "console/binary/generated/live_data_ids.h"; + private final static String tsOutputsDestination = "console/binary/"; + + private final GaugeConsumer gaugeConsumer = new GaugeConsumer(tsOutputsDestination + File.separator + "generated/gauges.ini"); + private final StringBuilder enumContent = new StringBuilder(header + "#pragma once\n" + "\n" + @@ -73,6 +77,11 @@ public class LiveDataProcessor { try (FileWriter fw = new FileWriter("console/binary/generated/fancy_menu.ini")) { fw.write(liveDataProcessor.fancyNewMenu.toString()); } + liveDataProcessor.end(); + } + + private void end() throws IOException { + gaugeConsumer.endFile(); } interface EntryHandler { @@ -81,7 +90,6 @@ public class LiveDataProcessor { private int handleYaml(Map data) throws IOException { JavaSensorsConsumer javaSensorsConsumer = new JavaSensorsConsumer(); - String tsOutputsDestination = "console/binary/"; OutputsSectionConsumer outputsSections = new OutputsSectionConsumer(tsOutputsDestination + File.separator + "generated/output_channels.ini"); @@ -91,8 +99,6 @@ public class LiveDataProcessor { GetOutputValueConsumer outputValueConsumer = new GetOutputValueConsumer("controllers/lua/generated/output_lookup_generated.cpp"); - GaugeConsumer gaugeConsumer = new GaugeConsumer(tsOutputsDestination + File.separator + "generated/gauges.ini"); - EntryHandler handler = new EntryHandler() { @Override public void onEntry(String name, String javaName, String folder, String prepend, boolean withCDefines, String[] outputNames, String constexpr) throws IOException { diff --git a/java_tools/configuration_definition_base/src/main/java/com/rusefi/ConfigField.java b/java_tools/configuration_definition_base/src/main/java/com/rusefi/ConfigField.java index 2e9b26fe4b..824bfc55a9 100644 --- a/java_tools/configuration_definition_base/src/main/java/com/rusefi/ConfigField.java +++ b/java_tools/configuration_definition_base/src/main/java/com/rusefi/ConfigField.java @@ -206,7 +206,7 @@ public interface ConfigField { int getDigits(); - public String getCategory(); + String getCategory(); String getIterateOriginalName();