diff options
author | Sven Gothel <[email protected]> | 2021-11-19 06:53:38 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-11-19 06:53:38 +0100 |
commit | 9fccce137eda7c688429cde82e8735cde069e3fa (patch) | |
tree | 376c534229043b079578ab2839d39e35c59a92d0 /examples/java | |
parent | afd00da021657acbfb8c17c2ee89004e3a9ce537 (diff) |
SMPKeyBin::createAndWrite(..): Drop 'overwrite' argument as we shall set overwrite = PairingMode::PRE_PAIRED != device.getPairingMode()
Only PRE_PAIRED keys shall not be overwrite the existing file, as they don't need to be and hence can preserve their timestamp.
However, another PairingMode indicates a new key and shall overwrite an existing file.
Diffstat (limited to 'examples/java')
-rw-r--r-- | examples/java/DBTScanner10.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/java/DBTScanner10.java b/examples/java/DBTScanner10.java index d61b61c9..446eb79a 100644 --- a/examples/java/DBTScanner10.java +++ b/examples/java/DBTScanner10.java @@ -431,7 +431,7 @@ public class DBTScanner10 { final long t1 = BTUtils.currentTimeMillis(); - SMPKeyBin.createAndWrite(device, DBTConstants.KEY_PATH, false /* overwrite */, true /* verbose */); + SMPKeyBin.createAndWrite(device, DBTConstants.KEY_PATH, true /* verbose */); boolean success = false; |