aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-07-27 04:39:58 +0200
committerSven Gothel <[email protected]>2020-07-27 04:39:58 +0200
commit69c2a8a45de2078cb00f9276efd76efc7704bc67 (patch)
tree39f8c21d03f3f607f0aa1d2f20f28b3bc3b98e02 /java
parentcdc8d0bdd3fde0555ecf6465e03edf32ab91be5e (diff)
GATTHandler::sendWithReply(): Disclose timeout value in error and exception on .. timeout
Diffstat (limited to 'java')
-rw-r--r--java/direct_bt/tinyb/DBTDevice.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/direct_bt/tinyb/DBTDevice.java b/java/direct_bt/tinyb/DBTDevice.java
index 6b1bdd0e..65301141 100644
--- a/java/direct_bt/tinyb/DBTDevice.java
+++ b/java/direct_bt/tinyb/DBTDevice.java
@@ -593,8 +593,8 @@ public class DBTDevice extends DBTObject implements BluetoothDevice
updateServiceCache(services);
return services;
} catch (final Throwable t) {
+ System.err.println("DBTDevice.getServices(): Caught "+t.getMessage()+" on thread "+Thread.currentThread().toString()+" on "+toString());
if(DEBUG) {
- System.err.println("Caught "+t.getMessage()+" on thread "+Thread.currentThread().toString());
t.printStackTrace();
}
}
@@ -607,8 +607,8 @@ public class DBTDevice extends DBTObject implements BluetoothDevice
try {
return pingGATTImpl();
} catch (final Throwable t) {
+ System.err.println("DBTDevice.pingGATT(): Caught "+t.getMessage()+" on thread "+Thread.currentThread().toString()+" on "+toString());
if(DEBUG) {
- System.err.println("Caught "+t.getMessage()+" on thread "+Thread.currentThread().toString());
t.printStackTrace();
}
}