only: search for srec file

This commit is contained in:
rusefillc 2024-03-31 16:52:42 -04:00
parent 9401aecd0c
commit 96d847c2a7
3 changed files with 4 additions and 3 deletions

View File

@ -84,7 +84,7 @@ public class IniFileModel {
}
@Nullable
private static String findFile(String fileDirectory, String prefix, String suffix) {
public static String findFile(String fileDirectory, String prefix, String suffix) {
File dir = new File(fileDirectory);
if (!dir.isDirectory())
return null;

View File

@ -6,7 +6,7 @@ import java.net.URL;
import java.util.concurrent.atomic.AtomicReference;
public interface rusEFIVersion {
int CONSOLE_VERSION = 20240227;
int CONSOLE_VERSION = 20240331;
AtomicReference<String> firmwareVersion = new AtomicReference<>("N/A");
static long classBuildTimeMillis() {

View File

@ -1,5 +1,6 @@
package com.rusefi.maintenance;
import com.opensr5.ini.IniFileModel;
import com.rusefi.FileLog;
import com.rusefi.Launcher;
import com.rusefi.SerialPortScanner;
@ -223,7 +224,7 @@ public class ProgramSelector {
OpenbltJni.OpenbltCallbacks cb = makeOpenbltCallbacks(callbacks);
try {
String fileName = "../rusefi_update.srec";
String fileName = IniFileModel.findFile("..", "rusefi", "srec");
callbacks.log("flashSerial " + fileName);
OpenbltJni.flashSerial(fileName, port, cb);