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

Commit 9ba12891 authored by Etienne Ruffieux's avatar Etienne Ruffieux
Browse files

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

Bug: 245578454
Tag: #feature
Test: atest pts-bot:GATT/SR
Change-Id: I62a917589d3aa4d1c1b9948d384665c20bee93a9
parent e2516d6d
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))
        }
      }