Skip to content

Commit f038cb0

Browse files
committed
fix(android): fix ble not working after disconnexion during write
1 parent 5b505bf commit f038cb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bluetooth.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ function initBluetoothGattCallback() {
858858
*/
859859
onCharacteristicWrite(gatt: android.bluetooth.BluetoothGatt, characteristic: android.bluetooth.BluetoothGattCharacteristic, status: number) {
860860
if (Trace.isEnabled()) {
861-
CLog(CLogTypes.info, `TNS_BluetoothGattCallback.onCharacteristicWrite ---- gatt: ${gatt}, characteristic: ${characteristic}`);
861+
CLog(CLogTypes.info, `TNS_BluetoothGattCallback.onCharacteristicWrite ---- gatt: ${gatt}, characteristic: ${characteristic}`, this.subDelegates.length);
862862
}
863863
this.subDelegates.forEach((d) => {
864864
if (d.onCharacteristicWrite) {

0 commit comments

Comments
 (0)