fix bugs
This commit is contained in:
parent
22fc884898
commit
8f95fa7ec2
2 changed files with 3 additions and 3 deletions
|
@ -49,10 +49,10 @@ public class AppPreferences {
|
|||
public short getPid(){ return (short) preferences.getInt("pid", 0x3000); }
|
||||
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 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 boolean getHandleKernelDrvAutoDetach(){ return preferences.getBoolean("handle_kernel_driver", true); }
|
||||
|
|
|
@ -57,7 +57,7 @@ class UsbLoop {
|
|||
|
||||
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();
|
||||
|
||||
logPrinter.print("Save replies to dir: "+saveRepliesFolder.getName());
|
||||
|
|
Loading…
Reference in a new issue