Index: dialin/squish/crc.py =================================================================== diff -u -r2844f230ef5c84799b7577e1a2090c0a47a78d51 -r5cd2a8e30e348a5d91d4d02a3765deb0ce23ee57 --- dialin/squish/crc.py (.../crc.py) (revision 2844f230ef5c84799b7577e1a2090c0a47a78d51) +++ dialin/squish/crc.py (.../crc.py) (revision 5cd2a8e30e348a5d91d4d02a3765deb0ce23ee57) @@ -37,8 +37,8 @@ def crc8(vData): """ generates crc8 for the data vData - :param vData: - :return: + :param vData: byte of data + :return: (int) the crc code """ crc = 0 l = len(vData) @@ -53,9 +53,9 @@ def calcCRC8(vString, vDelimiter='.'): """ calculates crc8 for each character in string vString - :param vString: - :param vDelimiter: - :return: + :param vString: (str) the bytes of data + :param vDelimiter: (character) the string delimiter + :return: the hex formatted crc of the givven string """ str = vString.replace(vDelimiter, '') ba = bytearray.fromhex(str)