fixing indicator prefix

This commit is contained in:
rusefillc 2022-04-18 02:01:38 -04:00
parent 3bbab79d67
commit 9caec21e36
3 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -55,7 +55,7 @@ public class FragmentDialogConsumer implements ConfigurationConsumer {
hasIndicators = true;
indicatorPanel.append("indicatorPanel = " + getPanelName() + ", 2\n");
}
indicatorPanel.append("\tindicator = {" + configField.getName() + "}, \"No\", \"Yes\"\n");
indicatorPanel.append("\tindicator = {" + prefix + configField.getName() + "}, \"No\", \"Yes\"\n");
return 0;
}

View File

@ -19,6 +19,7 @@ public class FragmentDialogConsumerTest {
"struct speed_density_s\n" +
"\n" +
"float Tcharge_coff\n" +
"bit bit_of_sd\n" +
"\n" +
"! speed_density_s\n" +
"end_struct\n" +
@ -40,6 +41,7 @@ public class FragmentDialogConsumerTest {
state.readBufferedReader(outputChannels, fragmentDialogConsumer);
assertEquals("indicatorPanel = ac_stateIndicatorPanel, 2\n" +
"\tindicator = {sd_bit_of_sd}, \"No\", \"Yes\"\n" +
"\tindicator = {sd_present}, \"No\", \"Yes\"\n" +
"\tindicator = {sd_present2}, \"No\", \"Yes\"\n" +
"\tindicator = {sd_present3}, \"No\", \"Yes\"\n" +