summaryrefslogtreecommitdiffstats
path: root/java/direct_bt/tinyb
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-06-04 04:24:24 +0200
committerSven Gothel <[email protected]>2020-06-04 04:24:24 +0200
commite6d1ec031165eb10471426a71f1640ebb8e1159f (patch)
tree9d82164355a623d078f881dca5a09c850c788abd /java/direct_bt/tinyb
parent73f5b4fc21d7a14aa174f2c48657ca3f2229dda1 (diff)
Rename HCIErrorCode -> HCIStatusCode for clarity and pleasing the eyes
Diffstat (limited to 'java/direct_bt/tinyb')
-rw-r--r--java/direct_bt/tinyb/DBTAdapter.java4
-rw-r--r--java/direct_bt/tinyb/DBTDevice.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/java/direct_bt/tinyb/DBTAdapter.java b/java/direct_bt/tinyb/DBTAdapter.java
index d9f5f684..100334e7 100644
--- a/java/direct_bt/tinyb/DBTAdapter.java
+++ b/java/direct_bt/tinyb/DBTAdapter.java
@@ -41,7 +41,7 @@ import org.tinyb.BluetoothManager;
import org.tinyb.BluetoothNotification;
import org.tinyb.BluetoothType;
import org.tinyb.EIRDataTypeSet;
-import org.tinyb.HCIErrorCode;
+import org.tinyb.HCIStatusCode;
import org.tinyb.HCIWhitelistConnectType;
import org.tinyb.AdapterStatusListener;
import org.tinyb.TransportType;
@@ -433,7 +433,7 @@ public class DBTAdapter extends DBTObject implements BluetoothAdapter
}
@Override
- public void deviceDisconnected(final BluetoothDevice device, final HCIErrorCode reason, final long timestamp) {
+ public void deviceDisconnected(final BluetoothDevice device, final HCIStatusCode reason, final long timestamp) {
if( DEBUG ) {
System.err.println("Adapter.StatusListener.DISCONNECTED: Reason "+reason+": "+device+" on "+device.getAdapter());
}
diff --git a/java/direct_bt/tinyb/DBTDevice.java b/java/direct_bt/tinyb/DBTDevice.java
index 5f122720..f7bc5e91 100644
--- a/java/direct_bt/tinyb/DBTDevice.java
+++ b/java/direct_bt/tinyb/DBTDevice.java
@@ -39,7 +39,7 @@ import org.tinyb.BluetoothNotification;
import org.tinyb.BluetoothType;
import org.tinyb.EIRDataTypeSet;
import org.tinyb.GATTCharacteristicListener;
-import org.tinyb.HCIErrorCode;
+import org.tinyb.HCIStatusCode;
public class DBTDevice extends DBTObject implements BluetoothDevice
{
@@ -90,7 +90,7 @@ public class DBTDevice extends DBTObject implements BluetoothDevice
}
}
@Override
- public void deviceDisconnected(final BluetoothDevice device, final HCIErrorCode reason, final long timestamp) {
+ public void deviceDisconnected(final BluetoothDevice device, final HCIStatusCode reason, final long timestamp) {
if( connected ) {
connected = false;
synchronized(userCallbackLock) {