Compare commits

...

2 commits

Author SHA1 Message Date
Dmitry Isaenko
4787e7bc71 version update 2020-05-04 17:13:26 +03:00
Dmitry Isaenko
8f95fa7ec2 fix bugs 2020-05-04 17:09:01 +03:00
5 changed files with 6 additions and 5 deletions

View file

@ -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" />

View file

@ -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>

View file

@ -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); }

View file

@ -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{

View file

@ -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());