only:minor usability

This commit is contained in:
rusefi 2024-08-01 00:54:19 -04:00
parent 77422a22f2
commit 8443577343
2 changed files with 13 additions and 13 deletions

View File

@ -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() {

View File

@ -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);