diff options
author | Sven Gothel <[email protected]> | 2020-07-24 11:49:02 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-07-24 11:49:02 +0200 |
commit | 703917c2b71cdb78ebcf737cc8c99160d28b3b78 (patch) | |
tree | 1569bd8ae64d27b0a2ec4769bd0712275e16ee5b /java | |
parent | 3437e34c97c1dad0c4c0d27680371f693aadac4f (diff) |
DBTGattCharacteristic: Always pass valid boolean[2] to configNotificationIndication(..)
Diffstat (limited to 'java')
-rw-r--r-- | java/direct_bt/tinyb/DBTGattCharacteristic.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/direct_bt/tinyb/DBTGattCharacteristic.java b/java/direct_bt/tinyb/DBTGattCharacteristic.java index a5b07f2a..bc9dd149 100644 --- a/java/direct_bt/tinyb/DBTGattCharacteristic.java +++ b/java/direct_bt/tinyb/DBTGattCharacteristic.java @@ -274,7 +274,7 @@ public class DBTGattCharacteristic extends DBTObject implements BluetoothGattCha @Override public final synchronized void enableValueNotifications(final BluetoothNotification<byte[]> callback) { - if( !configNotificationIndication(true /* enableNotification */, true /* enableIndication */, null) ) { + if( !configNotificationIndication(true /* enableNotification */, true /* enableIndication */, new boolean[2]) ) { valueNotificationCB = null; } else { valueNotificationCB = callback; @@ -283,7 +283,7 @@ public class DBTGattCharacteristic extends DBTObject implements BluetoothGattCha @Override public final synchronized void disableValueNotifications() { - configNotificationIndication(false /* enableNotification */, false /* enableIndication */, null); + configNotificationIndication(false /* enableNotification */, false /* enableIndication */, new boolean[2]); valueNotificationCB = null; } |