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

Commit 6e81f67b authored by weichinweng's avatar weichinweng Committed by android-build-merger
Browse files

Merge "Use GATT_WRITE_NO_RSP for "state change" updates"

am: a4d6651f

Change-Id: I653082394e8cb744cbe7eb2b85ad641e0dd73b18
parents 7c5bfd32 a4d6651f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1551,9 +1551,9 @@ class HearingAidImpl : public HearingAid {
      // Send the data packet
      LOG(INFO) << __func__ << ": Send State Change. device=" << device->address
                << ", status=" << loghex(payload[1]);
      BtaGattQueue::WriteCharacteristic(device->conn_id,
                                        device->audio_control_point_handle,
                                        payload, GATT_WRITE, nullptr, nullptr);
      BtaGattQueue::WriteCharacteristic(
          device->conn_id, device->audio_control_point_handle, payload,
          GATT_WRITE_NO_RSP, nullptr, nullptr);
    }
  }