Compare commits
2 commits
22fc884898
...
4787e7bc71
Author | SHA1 | Date | |
---|---|---|---|
|
4787e7bc71 | ||
|
8f95fa7ec2 |
5 changed files with 6 additions and 5 deletions
|
@ -6,6 +6,7 @@
|
||||||
<content url="file://$MODULE_DIR$">
|
<content url="file://$MODULE_DIR$">
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -8,7 +8,7 @@
|
||||||
<name>JavaUSBTool</name>
|
<name>JavaUSBTool</name>
|
||||||
|
|
||||||
<artifactId>javausbtool</artifactId>
|
<artifactId>javausbtool</artifactId>
|
||||||
<version>0.1-SNAPSHOT</version>
|
<version>0.2-SNAPSHOT</version>
|
||||||
|
|
||||||
<url>https://github.com/developersu/javausbtool/</url>
|
<url>https://github.com/developersu/javausbtool/</url>
|
||||||
<description>
|
<description>
|
||||||
|
|
|
@ -49,10 +49,10 @@ public class AppPreferences {
|
||||||
public short getPid(){ return (short) preferences.getInt("pid", 0x3000); }
|
public short getPid(){ return (short) preferences.getInt("pid", 0x3000); }
|
||||||
public void setPid(short value){ preferences.putInt("pid", value); }
|
public void setPid(short value){ preferences.putInt("pid", value); }
|
||||||
|
|
||||||
public int getInterface(){ return preferences.getInt("interface", 1); }
|
public int getInterface(){ return preferences.getInt("interface", 0); }
|
||||||
public void setInterface(int value){ preferences.putInt("interface", value); }
|
public void setInterface(int value){ preferences.putInt("interface", value); }
|
||||||
|
|
||||||
public int getDeviceConfiguration(){ return preferences.getInt("devconfiguration", 0); }
|
public int getDeviceConfiguration(){ return preferences.getInt("devconfiguration", 1); }
|
||||||
public void setDeviceConfiguration(int value){ preferences.putInt("devconfiguration", value); }
|
public void setDeviceConfiguration(int value){ preferences.putInt("devconfiguration", value); }
|
||||||
|
|
||||||
public boolean getHandleKernelDrvAutoDetach(){ return preferences.getBoolean("handle_kernel_driver", true); }
|
public boolean getHandleKernelDrvAutoDetach(){ return preferences.getBoolean("handle_kernel_driver", true); }
|
||||||
|
|
|
@ -31,7 +31,7 @@ import java.util.ResourceBundle;
|
||||||
|
|
||||||
public class JFXMain extends Application {
|
public class JFXMain extends Application {
|
||||||
|
|
||||||
public static final String appVersion = "v0.1";
|
public static final String appVersion = "v0.2";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void start(Stage primaryStage) throws Exception{
|
public void start(Stage primaryStage) throws Exception{
|
||||||
|
|
|
@ -57,7 +57,7 @@ class UsbLoop {
|
||||||
|
|
||||||
logPrinter.print("============= UsbProtocol =============");
|
logPrinter.print("============= UsbProtocol =============");
|
||||||
|
|
||||||
this.saveRepliesFolder = new File(saveRepliesTo+ LocalTime.now().format(DateTimeFormatter.ofPattern("HH:mm:ss")));
|
this.saveRepliesFolder = new File(saveRepliesTo+File.separator+ LocalTime.now().format(DateTimeFormatter.ofPattern("HH:mm:ss")));
|
||||||
saveRepliesFolder.mkdirs();
|
saveRepliesFolder.mkdirs();
|
||||||
|
|
||||||
logPrinter.print("Save replies to dir: "+saveRepliesFolder.getName());
|
logPrinter.print("Save replies to dir: "+saveRepliesFolder.getName());
|
||||||
|
|
Loading…
Reference in a new issue