TS SD integration #1653
This commit is contained in:
parent
713e4cc2c8
commit
6fd56cffdb
|
@ -43,6 +43,7 @@ public class ConnectPanel {
|
||||||
|
|
||||||
String autoDetectedPort = PortDetector.autoDetectSerial(null);
|
String autoDetectedPort = PortDetector.autoDetectSerial(null);
|
||||||
if (autoDetectedPort == null) {
|
if (autoDetectedPort == null) {
|
||||||
|
connect.setEnabled(true);
|
||||||
status.setText("rusEFI not detected");
|
status.setText("rusEFI not detected");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,15 +76,16 @@ public class SdCardReader {
|
||||||
topPanel.add(lowPanel, BorderLayout.SOUTH);
|
topPanel.add(lowPanel, BorderLayout.SOUTH);
|
||||||
|
|
||||||
content.add(topPanel, BorderLayout.NORTH);
|
content.add(topPanel, BorderLayout.NORTH);
|
||||||
content.add(fileList, BorderLayout.CENTER);
|
|
||||||
|
JScrollPane fileListScroll = new JScrollPane(fileList, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
||||||
|
content.add(fileListScroll, BorderLayout.CENTER);
|
||||||
|
|
||||||
content.add(new JLabel("<html>This tab allows direct access to SD card<br/>Please be sure to disconnect Tuner Studio from ECU while downloading files using this tab"), BorderLayout.SOUTH);
|
content.add(new JLabel("<html>This tab allows direct access to SD card<br/>Please be sure to disconnect Tuner Studio from ECU while downloading files using this tab"), BorderLayout.SOUTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private String getDestinationFolder(Supplier<ControllerAccess> controllerAccessSupplier) {
|
private String getDestinationFolder(Supplier<ControllerAccess> controllerAccessSupplier) {
|
||||||
String folder = LogUploadSelector.getLogsFolderDir(controllerAccessSupplier.get().getEcuConfigurationNames()[0]);
|
return LogUploadSelector.getLogsFolderDir(controllerAccessSupplier.get().getEcuConfigurationNames()[0]);
|
||||||
return folder;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Component getContent() {
|
public Component getContent() {
|
||||||
|
|
Loading…
Reference in New Issue