Dana reset buffer at connect

This commit is contained in:
Milos Kozak 2021-06-03 19:01:38 +02:00
parent fedba23405
commit b2fc621375

View file

@ -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)