mirror of
https://github.com/AsahiLinux/m1n1
synced 2025-02-16 21:58:27 +00:00
proxy.py: Add debug for rx events
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
35fddd5117
commit
957bf40d20
1 changed files with 2 additions and 0 deletions
|
@ -252,6 +252,8 @@ class UartInterface:
|
|||
reply += self.readfull(self.EVENT_HDR_LEN - 4)
|
||||
data_len, event_type = struct.unpack("<HH", reply[4:])
|
||||
reply += self.readfull(data_len + 4)
|
||||
if self.debug:
|
||||
print(">>", hexdump(reply))
|
||||
checksum = struct.unpack("<I", reply[-4:])[0]
|
||||
ccsum = self.checksum(reply[:-4])
|
||||
if checksum != ccsum:
|
||||
|
|
Loading…
Add table
Reference in a new issue