TS does not support zero length arrays? #2366
This commit is contained in:
parent
39884f8934
commit
40e9c4174f
|
@ -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"
|
||||
|
|
Binary file not shown.
|
@ -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()) + ",");
|
||||
|
|
Loading…
Reference in New Issue