code: func CalculateCRC8(pkt []byte) byte {
  	crc := byte(0x77)
  	for _, val := range pkt {
  		crc = crc8table[(crc^byte(val))&0xff]
  	}
  
  	return crc
  }
docs: // CalculateCRC8 calculates the starting CRC8 byte for packet.