code: def verify(self, chksum):
          
          total = 0
  
          # Add together all bytes
          for byte in self.data:
              total += byteToInt(byte)
  
          # Add checksum too
          total += byteToInt(chksum)
  
          # Only keep low bits
          total &= 0xFF
  
          # Check result
          return total == 0xFF
docs: verify: 1 byte -> boolean
  
          verify checksums the frame, adds the expected checksum, and
          determines whether the result is correct. The result should
          be 0xFF.