only:minor usability
This commit is contained in:
parent
77422a22f2
commit
8443577343
|
@ -9,7 +9,7 @@ public interface rusEFIVersion {
|
|||
/**
|
||||
* @see com.rusefi.autoupdate.Autoupdate#VERSION
|
||||
*/
|
||||
int CONSOLE_VERSION = 20240728;
|
||||
int CONSOLE_VERSION = 20240801;
|
||||
AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
|
||||
|
||||
static long classBuildTimeMillis() {
|
||||
|
|
|
@ -349,22 +349,22 @@ public class ProgramSelector {
|
|||
updateModeComboBox.removeAllItems();
|
||||
if (FileLog.isWindows()) {
|
||||
boolean requireBlt = FindFileHelper.isObfuscated();
|
||||
if (hasSerialPorts && !requireBlt) {
|
||||
updateModeComboBox.addItem(DFU_AUTO);
|
||||
}
|
||||
|
||||
if (hasDfuDevice && !requireBlt) {
|
||||
updateModeComboBox.addItem(DFU_MANUAL);
|
||||
updateModeComboBox.addItem(DFU_ERASE);
|
||||
if (DfuFlasher.haveBootloaderBinFile()) {
|
||||
updateModeComboBox.addItem(INSTALL_OPENBLT);
|
||||
}
|
||||
}
|
||||
if (!requireBlt) {
|
||||
if (hasSerialPorts) {
|
||||
updateModeComboBox.addItem(DFU_AUTO);
|
||||
}
|
||||
if (hasDfuDevice) {
|
||||
updateModeComboBox.addItem(DFU_MANUAL);
|
||||
updateModeComboBox.addItem(DFU_ERASE);
|
||||
if (DfuFlasher.haveBootloaderBinFile()) {
|
||||
updateModeComboBox.addItem(INSTALL_OPENBLT);
|
||||
}
|
||||
}
|
||||
updateModeComboBox.addItem(DFU_SWITCH);
|
||||
if (currentHardware.isStLinkConnected())
|
||||
updateModeComboBox.addItem(ST_LINK);
|
||||
}
|
||||
if (currentHardware.isStLinkConnected())
|
||||
updateModeComboBox.addItem(ST_LINK);
|
||||
if (currentHardware.isPCANConnected())
|
||||
updateModeComboBox.addItem(OPENBLT_CAN);
|
||||
// todo: detect PCAN mode.addItem(OPENBLT_CAN);
|
||||
|
|
Loading…
Reference in New Issue