rusefillc 2021-10-28 13:11:32 -04:00
parent d2b923edc8
commit a8b922b008
4 changed files with 5 additions and 3 deletions

View File

@ -3816,3 +3816,5 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@\x00\x31\x00\x00"
#else
addTool = afrTableGenerator, "AFR Table Generator", afrTableTbl
#endif

Binary file not shown.

View File

@ -46,12 +46,12 @@ public class TSProjectConsumer implements ConfigurationConsumer {
return tsPosition;
}
if (configField.getComment() != null && configField.getComment().trim().length() > 0) {
ConfigStructure cs = configField.getState().structures.get(configField.getType());
if (configField.getComment() != null && configField.getComment().trim().length() > 0 && cs == null) {
settingContextHelp.append("\t" + nameWithPrefix + " = \"" + configField.getCommentContent() + "\"" + EOL);
}
state.variableRegistry.register(nameWithPrefix + "_offset", tsPosition);
ConfigStructure cs = configField.getState().structures.get(configField.getType());
if (cs != null) {
String extraPrefix = cs.withPrefix ? configField.getName() + "_" : "";
return writeTunerStudio(cs, prefix + extraPrefix, tsHeader, tsPosition);

View File

@ -437,7 +437,7 @@ public class ConfigFieldParserTest {
assertEquals("pid_afr_type = scalar, F32, 0, \"ms\", 1, 0, 0, 3000, 0\n" +
"pid_afr_typet = scalar, F32, 4, \"ms\", 1, 0, 0, 3000, 0\n" +
"; total TS size = 8\n", new String(writer.toCharArray()));
assertEquals("\tpid = \"comment\"\n" +
assertEquals(
"\tpid_afr_type = \"PID dTime\"\n" +
"\tpid_afr_typet = \"PID dTime\"\n", tsProjectConsumer.getSettingContextHelp().toString());
}