weather/stations/davis.py
def verify(data):
        '''
        perform CRC check on raw serial data, return true if valid.
        a valid CRC == 0.
        '''
        if len(data) == 0:
            return False
        crc = VProCRC.get(data)
        if crc:
            log.info("CRC Bad")
        else:
            log.debug("CRC OK")
        return not crc
def verify(data):
        '''
        perform CRC check on raw serial data, return true if valid.
        a valid CRC == 0.
        '''
        if len(data) == 0:
            return False
        crc = VProCRC.get(data)
        if crc:
            log.info("CRC Bad")
        else:
            log.debug("CRC OK")
        return not crc
def verify ( data ) : if len ( data ) == 0 : return False crc = VProCRC . get ( data ) if crc : log . info ( "CRC Bad" ) else : log . debug ( "CRC OK" ) return not crc
perform CRC check on raw serial data, return true if valid.
        a valid CRC == 0.
perform CRC check on raw serial data return true if valid . a valid CRC == 0 .