react-native-ble-manager 10.0.1 → 10.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,8 +13,8 @@ public class NotifyBufferContainer {
13
13
  }
14
14
  public byte[] put(byte[] value){
15
15
  int restLength = value.length - this.items.remaining();
16
- byte[] toInsert;
17
- byte[] rest;
16
+ byte[] toInsert = null;
17
+ byte[] rest = null;
18
18
  if (restLength < 0) {
19
19
  rest = new byte[restLength];
20
20
  toInsert = new byte[value.length - restLength];
@@ -27,7 +27,7 @@ public class NotifyBufferContainer {
27
27
  return rest;
28
28
  }
29
29
  public boolean isBufferFull(){
30
- return this.remaining() == 0;
30
+ return this.items.remaining() == 0;
31
31
  }
32
32
  public int size() {
33
33
  return this.items.limit();
@@ -421,7 +421,7 @@ public class Peripheral extends BluetoothGattCallback {
421
421
  // If for some reason the value's length >= 2*buffer size this will be able to
422
422
  // handle it
423
423
  while (dataValue != null) {
424
- byte[] rest;
424
+ byte[] rest = null;
425
425
  if (buffer != null) {
426
426
  rest = buffer.put(dataValue);
427
427
  Log.d(BleManager.LOG_TAG, "onCharacteristicChanged-buffering: " +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ble-manager",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "description": "A BLE module for react native.",
5
5
  "repository": {
6
6
  "type": "git",