Skip to content

Thanks for nice work, I found error please update error in code. #11

@virendpatel

Description

@virendpatel

def getChecksum(data):

"""
calculates the checksum of the packet.
:param data: the datapacket
Returns the list containing two bytes which are the checksum of the given
packet.
"""

frame = data[6:]
csum = sum(getIntList(frame))
_csum1 = int(csum / 256)
csum2 = csum % 256_
#print(hex(csum1), hex(csum2))
return [csum1, csum2]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions