Skip to content

Commit ec742fb

Browse files
committed
fix prefix for flashed binary
1 parent eb23fd5 commit ec742fb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

java_console/ui/src/main/java/com/rusefi/maintenance/DfuFlasher.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static void doAutoDfu(Object selectedItem, JComponent parent) {
5050
if (isSignatureValidated.get()) {
5151
if (!ProgramSelector.IS_WIN) {
5252
wnd.append("Switched to DFU mode!");
53-
wnd.append("rusEFI console can only program on Windows");
53+
wnd.append("FOME console can only program on Windows");
5454
return;
5555
}
5656
submitAction(() -> {
@@ -81,7 +81,7 @@ public Void apply(SerialAutoChecker.CallbackContext callbackContext) {
8181
}
8282
});
8383
if (signature.get() == null) {
84-
wnd.append("*** ERROR *** rusEFI has not responded on selected " + port + "\n" +
84+
wnd.append("*** ERROR *** FOME has not responded on selected " + port + "\n" +
8585
"Maybe try automatic serial port detection?");
8686
wnd.setErrorState();
8787
return null;
@@ -99,11 +99,11 @@ public Void apply(SerialAutoChecker.CallbackContext callbackContext) {
9999
return null;
100100
}).getSerialPort();
101101
if (port == null) {
102-
wnd.append("*** ERROR *** rusEFI serial port not detected");
102+
wnd.append("*** ERROR *** FOME serial port not detected");
103103
wnd.setErrorState();
104104
return null;
105105
} else {
106-
wnd.append("Detected rusEFI on " + port + "\n");
106+
wnd.append("Detected FOME on " + port + "\n");
107107
}
108108
}
109109
return isSignatureValidated;
@@ -135,7 +135,7 @@ public static void runDfuProgramming() {
135135
private static void executeDFU(StatusWindow wnd) {
136136
boolean driverIsHappy = detectSTM32BootloaderDriverState(wnd);
137137
if (!driverIsHappy) {
138-
wnd.append("*** DRIVER ERROR? *** Did you have a chance to try 'Install Drivers' button on top of rusEFI console start screen?");
138+
wnd.append("*** DRIVER ERROR? *** Did you have a chance to try 'Install Drivers' button on top of FOME console start screen?");
139139
wnd.setErrorState();
140140
return;
141141
}
@@ -159,7 +159,7 @@ private static void executeDFU(StatusWindow wnd) {
159159
} else if (stdout.toString().contains("Target device not found")) {
160160
wnd.append("ERROR: Device not connected or STM32 Bootloader driver not installed?");
161161
appendWindowsVersion(wnd);
162-
wnd.append("ERROR: Please try installing drivers using 'Install Drivers' button on rusEFI splash screen");
162+
wnd.append("ERROR: Please try installing drivers using 'Install Drivers' button on FOME splash screen");
163163
wnd.append("ERROR: Alternatively please install drivers using Device Manager pointing at 'drivers/silent_st_drivers/DFU_Driver' folder");
164164
appendDeviceReport(wnd);
165165
wnd.setErrorState();
@@ -213,7 +213,7 @@ private static void timeForDfuSwitch(StatusWindow wnd) {
213213
}
214214

215215
private static String getDfuWriteCommand() throws FileNotFoundException {
216-
String prefix = "rusefi";
216+
String prefix = "fome";
217217
String suffix = ".bin";
218218
String fileName = IniFileModel.findFile(Launcher.INPUT_FILES_PATH, prefix, suffix);
219219
if (fileName == null)
@@ -246,7 +246,7 @@ static List<String> getDevicesReport() {
246246
BufferedReader stdout = new BufferedReader(new InputStreamReader(powerShellProcess.getInputStream()));
247247
while ((line = stdout.readLine()) != null) {
248248
String lowerCase = line.toLowerCase();
249-
if (!lowerCase.contains("stm32") && !lowerCase.contains("dfu") && !lowerCase.contains("rusefi"))
249+
if (!lowerCase.contains("stm32") && !lowerCase.contains("dfu") && !lowerCase.contains("fome"))
250250
continue;
251251
report.add(line);
252252
}

0 commit comments

Comments
 (0)