From a6a5b6fd93c9b5cab95246032042f3999a071914 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 29 Sep 2022 14:23:16 -0400 Subject: [PATCH] Firmware Update Error fix #4626 --- .../shared_io/src/main/java/com/rusefi/rusEFIVersion.java | 2 +- .../ui/src/main/java/com/rusefi/maintenance/DfuFlasher.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 a5cca02b9f..f1a6539e43 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 = 20220926; + public static final int CONSOLE_VERSION = 20220929; public static AtomicReference firmwareVersion = new AtomicReference<>("N/A"); public static long classBuildTimeMillis() { diff --git a/java_console/ui/src/main/java/com/rusefi/maintenance/DfuFlasher.java b/java_console/ui/src/main/java/com/rusefi/maintenance/DfuFlasher.java index f34f58491a..d15613351b 100644 --- a/java_console/ui/src/main/java/com/rusefi/maintenance/DfuFlasher.java +++ b/java_console/ui/src/main/java/com/rusefi/maintenance/DfuFlasher.java @@ -31,7 +31,7 @@ import static com.rusefi.StartupFrame.appendBundleName; public class DfuFlasher { private static final String DFU_BINARY_LOCATION = Launcher.TOOLS_PATH + File.separator + "STM32_Programmer_CLI/bin"; private static final String DFU_BINARY = "STM32_Programmer_CLI.exe"; - private static final String WMIC_DRIVER_QUERY_COMMAND = "wmic path win32_pnpentity where \"Caption like 'STM32 Bootloader'\" get Caption,ConfigManagerErrorCode /format:list"; + private static final String WMIC_DRIVER_QUERY_COMMAND = "wmic path win32_pnpentity where \"Caption like '%STM32%' and Caption like '%Bootloader%'\" get Caption,ConfigManagerErrorCode /format:list"; public static void doAutoDfu(Object selectedItem, JComponent parent) { if (selectedItem == null) {