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

Commit d90bc4f9 authored by Thomas Girardier's avatar Thomas Girardier Committed by Gerrit Code Review
Browse files

Merge "Fix new avrcp error response"

parents e7dc1c41 30948e37
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -680,6 +680,11 @@ void Device::MessageReceived(uint8_t label, std::shared_ptr<Packet> pkt) {
    case Opcode::SUBUNIT_INFO: {
    } break;
    case Opcode::PASS_THROUGH: {
      /** Newavrcp not passthrough response pkt. @{ */
      if (pkt->GetCType() == CType::ACCEPTED || pkt->GetCType() == CType::REJECTED
          || pkt->GetCType() == CType::NOT_IMPLEMENTED)
        break;
      /** @} */
      auto pass_through_packet = Packet::Specialize<PassThroughPacket>(pkt);

      if (!pass_through_packet->IsValid()) {