From 91a6665c253d1b703bd6283bc3b0f91d50c92ec3 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 18 Jan 2022 11:59:18 -0500 Subject: [PATCH] console bug #3807 --- .../inifile/src/main/java/com/rusefi/config/FieldType.java | 4 ++++ .../shared_io/src/main/java/com/rusefi/rusEFIVersion.java | 2 +- .../main/java/com/rusefi/livedata/LiveDataParserPanel.java | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/java_console/inifile/src/main/java/com/rusefi/config/FieldType.java b/java_console/inifile/src/main/java/com/rusefi/config/FieldType.java index 9f76827dca..517ddf6964 100644 --- a/java_console/inifile/src/main/java/com/rusefi/config/FieldType.java +++ b/java_console/inifile/src/main/java/com/rusefi/config/FieldType.java @@ -76,4 +76,8 @@ public enum FieldType { throw new UnsupportedOperationException("storage size is unclear on " + this); return storageSize; } + + public boolean isString() { + return this == STRING; + } } \ No newline at end of file diff --git a/java_console/shared_io/src/main/java/com/rusefi/rusEFIVersion.java b/java_console/shared_io/src/main/java/com/rusefi/rusEFIVersion.java index 1b6e220210..e35348e72c 100644 --- a/java_console/shared_io/src/main/java/com/rusefi/rusEFIVersion.java +++ b/java_console/shared_io/src/main/java/com/rusefi/rusEFIVersion.java @@ -6,7 +6,7 @@ import java.net.URL; import java.util.concurrent.atomic.AtomicReference; public class rusEFIVersion { - public static final int CONSOLE_VERSION = 20220116; + public static final int CONSOLE_VERSION = 20220118; public static AtomicReference firmwareVersion = new AtomicReference<>("N/A"); public static long classBuildTimeMillis() { diff --git a/java_console/ui/src/main/java/com/rusefi/livedata/LiveDataParserPanel.java b/java_console/ui/src/main/java/com/rusefi/livedata/LiveDataParserPanel.java index 0cf285c5cc..d28c78538d 100644 --- a/java_console/ui/src/main/java/com/rusefi/livedata/LiveDataParserPanel.java +++ b/java_console/ui/src/main/java/com/rusefi/livedata/LiveDataParserPanel.java @@ -67,6 +67,8 @@ public class LiveDataParserPanel { Field field = Field.findFieldOrNull(Fields.VALUES, "", setting.getText()); if (field == null) continue; + if (field.getType().isString()) + continue; Number value = field.getValue(ci); Rectangle r; try {