You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""
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]
The text was updated successfully, but these errors were encountered:
def getChecksum(data):
The text was updated successfully, but these errors were encountered: