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

Commit 00a5fe9e authored by Alice Kuo's avatar Alice Kuo Committed by Automerger Merge Worker
Browse files

Only parse ATT_READ_BY_TYPE_RSP for the charactertistic type am: a0e1cf8c am: 8445d42d

parents 0578e8ca 8445d42d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -215,6 +215,10 @@ def parse_codec_information(connection_handle, ase_id, packet):

def parse_att_read_by_type_rsp(packet, connection_handle):
    length, packet = unpack_data(packet, 1, False)
    if length != 7:
        #ignore the packet, we're only interested in this packet for the characteristic type UUID
        return

    if length > len(packet):
        debug_print("Invalid att packet length")
        return