Skip to content

Commit

Permalink
Merge pull request #153 from lhdjply/fix/protocols
Browse files Browse the repository at this point in the history
fix(protocols): fix add_sum tips name 'a' is not defined
  • Loading branch information
Neutree authored Oct 10, 2024
2 parents a99febf + 87d8857 commit 69380b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion COMTool/plugins/protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def decode(data:bytes) -> bytes:
return data
def encode(data:bytes) -> bytes:
return data + bytes([sum(a) % 256])
return data + bytes([sum(data) % 256])
'''


Expand Down

0 comments on commit 69380b8

Please sign in to comment.