Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b0e0bd1 authored by Etienne Ruffieux's avatar Etienne Ruffieux Committed by Charlie Boutier
Browse files

[Pandora] Fix GATT server test that don't need data.

Tag: #feature
Bug: 245578454
Test: atest pts-bot:GATT/SR
Ignore-AOSP-First: Cherry-pick from AOSP
Merged-In: I62a917589d3aa4d1c1b9948d384665c20bee93a9
Change-Id: I62a917589d3aa4d1c1b9948d384665c20bee93a9
parent 06f86588
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ class GattServerManager(
  val callback =
    object : BluetoothGattServerCallback() {
      override fun onServiceAdded(status: Int, service: BluetoothGattService) {
        Log.i(TAG, "onServiceAdded")
        Log.i(TAG, "onServiceAdded status=$status")
        check(status == BluetoothGatt.GATT_SUCCESS)
        check(newServiceFlow.tryEmit(service))
      }
@@ -68,7 +68,7 @@ class GattServerManager(
            ByteArray(negociatedMtu)
          )
        } else {
          server.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset, ByteArray(512))
          server.sendResponse(device, requestId, BluetoothGatt.GATT_SUCCESS, offset, ByteArray(0))
        }
      }