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

Commit d580c95a authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Merge "Send volume just once when starting the stream."

am: b345f3eb

Change-Id: I8c64f2325849333c91010e0f0fdb5239d88187d0
parents 8ff02db4 b345f3eb
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -833,16 +833,6 @@ class HearingAidImpl : public HearingAid {
    BtaGattQueue::WriteCharacteristic(device.conn_id,
                                      device.audio_control_point_handle, start,
                                      GATT_WRITE, nullptr, nullptr);

    // TODO(jpawlowski): this will be removed, once test devices get volume
    // from start reqest
    if (current_volume != VOLUME_UNKNOWN) {
      std::vector<uint8_t> volume_value(
          {static_cast<unsigned char>(current_volume)});
      BtaGattQueue::WriteCharacteristic(device.conn_id, device.volume_handle,
                                        volume_value, GATT_WRITE_NO_RSP,
                                        nullptr, nullptr);
    }
  }

  void OnAudioDataReady(const std::vector<uint8_t>& data) {