fixing broken test?
This commit is contained in:
parent
196d88d89c
commit
f6c88cf4e9
|
@ -1508,6 +1508,7 @@ int8_t[MAX_CYLINDER_COUNT iterate] fuelTrim;;"Percent", @@PERCENT_TRIM_BYTE_PACK
|
||||||
! end of engine_configuration_s
|
! end of engine_configuration_s
|
||||||
end_struct
|
end_struct
|
||||||
|
|
||||||
|
! note that this magic field name is used by LiveDataParserPanel
|
||||||
engine_configuration_s engineConfiguration;
|
engine_configuration_s engineConfiguration;
|
||||||
|
|
||||||
error_message_t warning_message;
|
error_message_t warning_message;
|
||||||
|
|
|
@ -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
|
* this panel shows a live view of rusEFI firmware C/C++ code
|
||||||
*/
|
*/
|
||||||
public class LiveDataParserPanel {
|
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);
|
private static final Logging log = getLogging(LiveDataParserPanel.class);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -187,8 +187,7 @@ public class LiveDataParserPanel {
|
||||||
for (int i = 0; i < allTerminals.size() - 3; i++) {
|
for (int i = 0; i < allTerminals.size() - 3; i++) {
|
||||||
|
|
||||||
if (allTerminals.get(i).getText().equals(CONFIG_MAGIC_PREFIX) &&
|
if (allTerminals.get(i).getText().equals(CONFIG_MAGIC_PREFIX) &&
|
||||||
allTerminals.get(i + 1).getText().equals("(") &&
|
allTerminals.get(i + 1).getText().equals("->")
|
||||||
allTerminals.get(i + 3).getText().equals(")")
|
|
||||||
) {
|
) {
|
||||||
Token token = allTerminals.get(i + 2).getSymbol();
|
Token token = allTerminals.get(i + 2).getSymbol();
|
||||||
painter.paintForeground(Color.BLUE, new Range(token, token));
|
painter.paintForeground(Color.BLUE, new Range(token, token));
|
||||||
|
|
Loading…
Reference in New Issue