Replace send_pdu() with write()

This commit is contained in:
Josh Wu
2026-01-12 13:14:26 +08:00
parent 2cad743f8c
commit cf60b5ffbb
6 changed files with 10 additions and 10 deletions

View File

@@ -800,7 +800,7 @@ class Multiplexer(utils.EventEmitter):
def send_frame(self, frame: RFCOMM_Frame) -> None:
logger.debug(f'>>> Multiplexer sending {frame}')
self.l2cap_channel.send_pdu(frame)
self.l2cap_channel.write(bytes(frame))
def on_pdu(self, pdu: bytes) -> None:
frame = RFCOMM_Frame.from_bytes(pdu)