alphax f7 special treatment

This commit is contained in:
rusefillc 2023-06-30 18:07:11 -04:00
parent 41b78ddd8a
commit 8939f7f781
1 changed files with 2 additions and 1 deletions

View File

@ -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"