From e6d1ec031165eb10471426a71f1640ebb8e1159f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 4 Jun 2020 04:24:24 +0200 Subject: Rename HCIErrorCode -> HCIStatusCode for clarity and pleasing the eyes --- java/direct_bt/tinyb/DBTAdapter.java | 4 ++-- java/direct_bt/tinyb/DBTDevice.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'java/direct_bt/tinyb') 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) { -- cgit v1.2.3