We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f8af90 commit fde5b63Copy full SHA for fde5b63
brping/pingmessage.py
@@ -196,7 +196,7 @@ def calculate_checksum(self):
196
checksum = 0
197
for byte in self.msg_data[0:PingMessage.headerLength + self.payload_length]:
198
checksum += byte
199
- return checksum
+ return checksum & 0xffff
200
201
## Update the object checksum value
202
# @return the object checksum value
0 commit comments