From 9a038c3ab8d400ec5e8e00f7b868420f31aa3b65 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Fri, 6 Mar 2015 21:10:09 -0600 Subject: [PATCH] auto-sync --- firmware/config/engines/ford_aspire.cpp | 1 + java_console/io/src/com/rusefi/ConfigurationImage.java | 4 ++++ .../io/src/com/rusefi/binaryprotocol/BinaryProtocol.java | 2 ++ 3 files changed, 7 insertions(+) diff --git a/firmware/config/engines/ford_aspire.cpp b/firmware/config/engines/ford_aspire.cpp index 56a1263870..a778bc8f96 100644 --- a/firmware/config/engines/ford_aspire.cpp +++ b/firmware/config/engines/ford_aspire.cpp @@ -3,6 +3,7 @@ * @brief 1996 Ford Aspire default engine configuration * * FORD_ASPIRE_1996 = 3 + * set_engine_type 3 * * @date Sep 9, 2013 * @author Andrey Belomutskiy, (c) 2012-2015 diff --git a/java_console/io/src/com/rusefi/ConfigurationImage.java b/java_console/io/src/com/rusefi/ConfigurationImage.java index be3a65cff6..cb8fbbe099 100644 --- a/java_console/io/src/com/rusefi/ConfigurationImage.java +++ b/java_console/io/src/com/rusefi/ConfigurationImage.java @@ -31,4 +31,8 @@ public class ConfigurationImage { fos.close(); System.out.println("Saved to " + fileName); } + + public byte[] getContent() { + return content; + } } diff --git a/java_console/io/src/com/rusefi/binaryprotocol/BinaryProtocol.java b/java_console/io/src/com/rusefi/binaryprotocol/BinaryProtocol.java index 2daa42a593..d6261f845e 100644 --- a/java_console/io/src/com/rusefi/binaryprotocol/BinaryProtocol.java +++ b/java_console/io/src/com/rusefi/binaryprotocol/BinaryProtocol.java @@ -155,6 +155,8 @@ public class BinaryProtocol { } + System.arraycopy(response, 1, image.getContent(), offset, requestSize); + offset += requestSize; } System.out.println("Got image!");