parent
456a25842e
commit
60469a0c65
|
@ -28,7 +28,7 @@ import static com.rusefi.core.FindFileHelper.findSrecFile;
|
|||
|
||||
public class Autoupdate {
|
||||
private static final Logging log = getLogging(Autoupdate.class);
|
||||
private static final int AUTOUPDATE_VERSION = 20250208; // separate from rusEFIVersion#CONSOLE_VERSION
|
||||
private static final int AUTOUPDATE_VERSION = 20250213; // separate from rusEFIVersion#CONSOLE_VERSION
|
||||
|
||||
private static final String TITLE = getTitle();
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ public class FindFileHelper {
|
|||
* Same .bin used by primary DFU and a bit unneeded ST-LINK options
|
||||
*/
|
||||
public static final String FIRMWARE_BIN_FILE = INPUT_FILES_PATH + "/" + "rusefi.bin";
|
||||
private static final String PREFIX = "";
|
||||
private static final String SUFFIX = "srec";
|
||||
|
||||
@Nullable
|
||||
public static String findFile(String fileDirectory, String prefix, String suffix) {
|
||||
|
@ -33,7 +35,13 @@ public class FindFileHelper {
|
|||
|
||||
@Nullable
|
||||
public static String findSrecFile() {
|
||||
return findFile(INPUT_FILES_PATH, "", "srec");
|
||||
String fileAtFirstLocation = findFile(INPUT_FILES_PATH, PREFIX, SUFFIX);
|
||||
if (fileAtFirstLocation == null) {
|
||||
log.info("Second choice: current folder");
|
||||
return findFile(".", PREFIX, SUFFIX);
|
||||
}
|
||||
|
||||
return fileAtFirstLocation;
|
||||
}
|
||||
|
||||
public static boolean isObfuscated() {
|
||||
|
|
|
@ -10,7 +10,7 @@ public interface rusEFIVersion {
|
|||
* *** BE CAREFUL WE HAVE SEPARATE AUTOUPDATE_VERSION also managed manually ***
|
||||
* @see com.rusefi.autoupdate.Autoupdate#AUTOUPDATE_VERSION
|
||||
*/
|
||||
int CONSOLE_VERSION = 20250210;
|
||||
int CONSOLE_VERSION = 20250213;
|
||||
AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
|
||||
|
||||
static long classBuildTimeMillis() {
|
||||
|
|
Loading…
Reference in New Issue