fixing broken test?

This commit is contained in:
rusefillc 2021-11-24 13:25:29 -05:00
parent 196d88d89c
commit f6c88cf4e9
2 changed files with 3 additions and 3 deletions

View File

@ -1508,6 +1508,7 @@ int8_t[MAX_CYLINDER_COUNT iterate] fuelTrim;;"Percent", @@PERCENT_TRIM_BYTE_PACK
! end of engine_configuration_s
end_struct
! note that this magic field name is used by LiveDataParserPanel
engine_configuration_s engineConfiguration;
error_message_t warning_message;

View File

@ -40,7 +40,7 @@ import static javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED;
* this panel shows a live view of rusEFI firmware C/C++ code
*/
public class LiveDataParserPanel {
private static final String CONFIG_MAGIC_PREFIX = "CONFIG";
private static final String CONFIG_MAGIC_PREFIX = "engineConfiguration";
private static final Logging log = getLogging(LiveDataParserPanel.class);
{
@ -187,8 +187,7 @@ public class LiveDataParserPanel {
for (int i = 0; i < allTerminals.size() - 3; i++) {
if (allTerminals.get(i).getText().equals(CONFIG_MAGIC_PREFIX) &&
allTerminals.get(i + 1).getText().equals("(") &&
allTerminals.get(i + 3).getText().equals(")")
allTerminals.get(i + 1).getText().equals("->")
) {
Token token = allTerminals.get(i + 2).getSymbol();
painter.paintForeground(Color.BLUE, new Range(token, token));