diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index 0484a89f66..8bc91dd994 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -1646,7 +1646,6 @@ cmd_test_check_engine_light = "@@TS_IO_TEST_COMMAND_char@@@@CMD_TS_BENCH_CATEG cmd_test_idle_valve = "@@TS_IO_TEST_COMMAND_char@@@@CMD_TS_BENCH_CATEGORY_16_hex@@@@CMD_TS_BENCH_IDLE_VALVE_16_hex@@" cmd_test_hpfp_valve = "@@TS_IO_TEST_COMMAND_char@@@@CMD_TS_BENCH_CATEGORY_16_hex@@@@CMD_TS_BENCH_HPFP_VALVE_16_hex@@" - cmd_calibrate_tps_1_closed = "@@TS_IO_TEST_COMMAND_char@@\x00\x14\x00\x02" cmd_calibrate_tps_1_wot = "@@TS_IO_TEST_COMMAND_char@@\x00\x14\x00\x03" cmd_calibrate_tps_2_closed = "@@TS_IO_TEST_COMMAND_char@@\x00\x14\x00\x04" diff --git a/java_tools/ConfigDefinition.jar b/java_tools/ConfigDefinition.jar index df897921df..101116a748 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/output/TSProjectConsumer.java b/java_tools/configuration_definition/src/com/rusefi/output/TSProjectConsumer.java index 1556fe8f0a..ae9e82fb5f 100644 --- a/java_tools/configuration_definition/src/com/rusefi/output/TSProjectConsumer.java +++ b/java_tools/configuration_definition/src/com/rusefi/output/TSProjectConsumer.java @@ -76,6 +76,9 @@ public class TSProjectConsumer implements ConfigurationConsumer { tsPosition += configField.getState().tsCustomSize.get(configField.getType()); } else if (configField.getTsInfo() == null) { throw new IllegalArgumentException("Need TS info for " + configField.getName() + " at "+ prefix); + } else if (configField.getArraySize() == 0) { + // write nothing for empty array + // TS does not like those } else if (configField.getArraySize() != 1) { tsHeader.write(nameWithPrefix + " = array, "); tsHeader.write(TypesHelper.convertToTs(configField.getType()) + ",");