From 78753200bc4becb4c3d7c1d4e19d4537e2f7e2ce Mon Sep 17 00:00:00 2001 From: rusEfi Date: Sun, 30 Aug 2015 12:01:18 -0400 Subject: [PATCH] auto-sync --- java_console/ui/src/com/rusefi/TriggerImage.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/java_console/ui/src/com/rusefi/TriggerImage.java b/java_console/ui/src/com/rusefi/TriggerImage.java index 9c07eb1407..48e9e5760d 100644 --- a/java_console/ui/src/com/rusefi/TriggerImage.java +++ b/java_console/ui/src/com/rusefi/TriggerImage.java @@ -16,6 +16,8 @@ import java.util.Date; import java.util.List; /** + * This utility produces images of trigger signals supported by rusEfi + * * 06235/15 * (c) Andrey Belomutskiy 2013-2015 */ @@ -30,8 +32,6 @@ public class TriggerImage { */ public static int EXTRA_COUNT = 1; - private static int WAVE_COUNT = 2; - public static void main(String[] args) throws IOException, InvocationTargetException, InterruptedException { final String path; if (args.length != 1) { @@ -127,8 +127,11 @@ public class TriggerImage { String[] tokens; List signals = new ArrayList<>(); - for (int index = 0; index < count; index++) { + int index = 0; + while (index < count) { line = reader.readLine(); + if (line.trim().startsWith("#")) + continue; tokens = line.split(" "); String signalStr = tokens[2]; int signal = Integer.parseInt(signalStr); @@ -136,6 +139,7 @@ public class TriggerImage { double angle = Double.parseDouble(angleStr); signals.add(new Signal(signal, angle)); + index++; } List toShow = new ArrayList<>(signals);