diff --git a/java_tools/ConfigDefinition.jar b/java_tools/ConfigDefinition.jar index 19a59eeb7f..51d5a0c6aa 100644 Binary files a/java_tools/ConfigDefinition.jar and b/java_tools/ConfigDefinition.jar differ diff --git a/java_tools/configuration_definition/src/com/rusefi/ReaderState.java b/java_tools/configuration_definition/src/com/rusefi/ReaderState.java index 7b7155973b..0d99fbdb29 100644 --- a/java_tools/configuration_definition/src/com/rusefi/ReaderState.java +++ b/java_tools/configuration_definition/src/com/rusefi/ReaderState.java @@ -86,6 +86,8 @@ public class ReaderState { throw new IllegalStateException("Too many options in " + tunerStudioLine + " capacity=" + totalCount + "/size=" + enums.size()); if (enums.size() <= totalCount / 2) throw new IllegalStateException("Too many bits allocated for " + enums + " capacity=" + totalCount + "/size=" + enums.size()); + for (int i = enums.size(); i < totalCount; i++) + tunerStudioLine += ", \"INVALID\""; } state.tsCustomLine.put(name, tunerStudioLine); diff --git a/java_tools/configuration_definition/src/com/rusefi/test/ConfigFieldParserTest.java b/java_tools/configuration_definition/src/com/rusefi/test/ConfigFieldParserTest.java index 48b5946fee..dbdb08317d 100644 --- a/java_tools/configuration_definition/src/com/rusefi/test/ConfigFieldParserTest.java +++ b/java_tools/configuration_definition/src/com/rusefi/test/ConfigFieldParserTest.java @@ -47,7 +47,7 @@ public class ConfigFieldParserTest { CharArrayWriter writer = new CharArrayWriter(); TestTSProjectConsumer javaFieldsConsumer = new TestTSProjectConsumer(writer, "", state); state.readBufferedReader(reader, Arrays.asList(javaFieldsConsumer)); - assertEquals("\tafr_type\t\t\t\t\t = bits, S32, 0, [0:1], \"BPSX\", \"Innovate\", \"14Point7\"\n" + + assertEquals("\tafr_type\t\t\t\t\t = bits, S32, 0, [0:1], \"BPSX\", \"Innovate\", \"14Point7\", \"INVALID\"\n" + "; total TS size = 4\n", new String(writer.toCharArray())); }