Dana reset buffer at connect
This commit is contained in:
parent
fedba23405
commit
b2fc621375
|
@ -126,6 +126,7 @@ class BLEComm @Inject internal constructor(
|
||||||
encryptedDataRead = false
|
encryptedDataRead = false
|
||||||
encryptedCommandSent = false
|
encryptedCommandSent = false
|
||||||
isConnecting = true
|
isConnecting = true
|
||||||
|
bufferLength = 0
|
||||||
aapsLogger.debug(LTag.PUMPBTCOMM, "Trying to create a new connection from: $from")
|
aapsLogger.debug(LTag.PUMPBTCOMM, "Trying to create a new connection from: $from")
|
||||||
connectDeviceName = device.name
|
connectDeviceName = device.name
|
||||||
bluetoothGatt = device.connectGatt(context, false, mGattCallback)
|
bluetoothGatt = device.connectGatt(context, false, mGattCallback)
|
||||||
|
|
Loading…
Reference in a new issue