Now we perform port scanning for non-obfuscated firmware as well as for obfuscated one #6914

This commit is contained in:
kifir 2024-09-17 16:28:35 +03:00 committed by rusefillc
parent 5dd72e2bfd
commit 0fe5649794
1 changed files with 6 additions and 5 deletions

View File

@ -73,12 +73,11 @@ public class BasicStartupFrame {
statusMessage.setForeground(Color.red);
panel.add(statusMessage);
SerialPortScanner.INSTANCE.addListener(currentHardware -> SwingUtilities.invokeLater(() -> {
onHardwareUpdated(currentHardware);
}));
}
panel.add(updateFirmwareButton);
SerialPortScanner.INSTANCE.addListener(currentHardware -> SwingUtilities.invokeLater(() -> {
onHardwareUpdated(currentHardware);
}));
} else {
panel.add(new JLabel("Sorry only works on Windows"));
}
@ -118,7 +117,9 @@ public class BasicStartupFrame {
// not packed in updateStatus method
packFrame();
updatePortToUpdateObfuscatedFirmware(currentHardware);
if (isObfusacted) {
updatePortToUpdateObfuscatedFirmware(currentHardware);
}
}
private void updatePortToUpdateObfuscatedFirmware(final AvailableHardware currentHardware) {