From 8939f7f7815632cb7b6d840f490925e52868bff2 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Fri, 30 Jun 2023 18:07:11 -0400 Subject: [PATCH] alphax f7 special treatment --- .../ui/src/main/java/com/rusefi/maintenance/DfuFlasher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 fd803a2990..1eb2967c3d 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 @@ -47,7 +47,8 @@ public class DfuFlasher { StatusWindow wnd = createStatusWindow(); boolean needsEraseFirst = false; - if (BundleUtil.getBundleTarget().contains("f7")) { + String bundle = BundleUtil.getBundleTarget(); + if (bundle.contains("alphax") && bundle.contains("f7")) { int result = JOptionPane.showConfirmDialog(parent, "Firmware update requires a full erase of the ECU. If your tune is not saved in TunerStudio, it will be lost.\nEnsure that TunerStudio has your current tune saved!\n\nAfter updating, re-connect TunerStudio to restore your tune.\n\nPress OK to continue with the update, or Cancel to abort so you can save your tune.", "WARNING", JOptionPane.OK_CANCEL_OPTION); // 0 means they clicked "OK", 1 means they clicked "Cancel"