weather/stations/davis.py
def get(data):
        '''
        return CRC calc value from raw serial data
        '''
        crc = 0
        for byte in array('B', data):
            crc = (VProCRC.CRC_TABLE[(crc >> 8) ^ byte] ^ ((crc & 0xFF) << 8))
        return crc
def get(data):
        '''
        return CRC calc value from raw serial data
        '''
        crc = 0
        for byte in array('B', data):
            crc = (VProCRC.CRC_TABLE[(crc >> 8) ^ byte] ^ ((crc & 0xFF) << 8))
        return crc
return CRC calc value from raw serial data