only: search for srec file
This commit is contained in:
parent
9401aecd0c
commit
96d847c2a7
|
@ -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;
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue